Skip to content

Commit

Permalink
beta 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrothneyy committed Jun 19, 2018
1 parent 1a54a2b commit f357696
Show file tree
Hide file tree
Showing 138 changed files with 37,039 additions and 74 deletions.
Binary file modified .vs/WebPowerHouseFitness/DesignTimeBuild/.dtbcache
Binary file not shown.
Binary file modified .vs/WebPowerHouseFitness/v15/.suo
Binary file not shown.
Binary file modified .vs/WebPowerHouseFitness/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file not shown.
Binary file not shown.
982 changes: 982 additions & 0 deletions .vs/config/applicationhost.config

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions WebPowerHouseFitness/Data/MyDatabaseContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;

namespace WebPowerHouseFitness.Models
{
public class MyDatabaseContext : DbContext
{
public MyDatabaseContext (DbContextOptions<MyDatabaseContext> options)
: base(options)
{
}


public DbSet<WebPowerHouseFitness.Models.Gimnasio> Gimnasio { get; set; }

public DbSet<WebPowerHouseFitness.Models.Usuarios> Usuarios { get; set; }

public DbSet<WebPowerHouseFitness.Models.Anuncio> Anuncio { get; set; }

public DbSet<WebPowerHouseFitness.Models.Itinerario> Itinerario { get; set; }

public DbSet<WebPowerHouseFitness.Models.Perfil> Perfil { get; set; }
}
}
2 changes: 2 additions & 0 deletions WebPowerHouseFitness/Models/Anuncio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ namespace WebPowerHouseFitness.Models
public class Anuncio
{
public int ID { get; set; }
public string Nombre { get; set; }
public DateTime Fecha { get; set; }
public int Duracion { get; set; }
public Boolean Validacion { get; set; }


}
}
3 changes: 3 additions & 0 deletions WebPowerHouseFitness/Models/Gimnasio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ namespace WebPowerHouseFitness.Models
public class Gimnasio
{
public int ID { get; set; }
public string Nombre { get; set; }
public string Direccion { get; set; }
public string País { get; set; }
public string Ciudad { get; set; }
public string Provincia { get; set; }
public int Cantidad { get; set; }



Expand Down
1 change: 1 addition & 0 deletions WebPowerHouseFitness/Models/Itinerario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class Itinerario
{
public int ID { get; set; }
public DateTime Fecha { get; set; }


}
}
17 changes: 17 additions & 0 deletions WebPowerHouseFitness/Models/Planilla.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebPowerHouseFitness.Models
{
public class Planilla
{
public int ID { get; set; }
public string PT { get; set; }
public DateTime Hora { get; set; }
public int Valoracion { get; set; }
public int asistencia { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Este archivo se usa en el proceso de publicación y empaquetado del proyecto web. Para personalizar el comportamiento de este proceso,
edite el archivo MSBuild. Visite https://go.microsoft.com/fwlink/?LinkID=208121 para obtener más información.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/40c0a647-dc17-4862-99c2-1cac4e94215f/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/WebPowerHouseFitness20180618072906</ResourceId>
<ResourceGroup>myResourceGroup</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://webpowerhousefitness20180618072906.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<ProjectGuid>033adc4f-025e-4fa6-9fcb-3d83a1129d11</ProjectGuid>
<MSDeployServiceURL>webpowerhousefitness20180618072906.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>WebPowerHouseFitness20180618072906</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$WebPowerHouseFitness20180618072906</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Este archivo se usa en el proceso de publicación y empaquetado del proyecto web. Para personalizar el comportamiento de este proceso,
edite el archivo MSBuild. Visite https://go.microsoft.com/fwlink/?LinkID=208121 para obtener más información.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAQPxJqjojBEazh2JO7FnKlgAAAAACAAAAAAAQZgAAAAEAACAAAADYjww6t6eAJtuzrk2R1KmE/fg4OGJd79pu0du5tedyAQAAAAAOgAAAAAIAACAAAACtcrtrhJjxaaNCoyC9FqUlTZQAT/psrpua2C6UvXMhUYAAAADEDoDS2F6rjctFpWYQFap8Yaub/0XiSVs5EgcEHiaubGiiDX5wW1I6ASyr+8tpuF9lXIBYENKkfusfS3dE3IBB6R24GrxwexTvDfuHmJsatBdJeJ0Zj+o7aPi3QFYE0GtNmDhCqUt+lsVOwkMhvJrllmfhtCEug+L+QW4iyt1KvkAAAABEAXjH7LcTMXWdsF6fc7xP0HVamgROz2mNqzVEG8vxn8k8NCmTVftQRnOY1FUFdNCTXRIwQlRUNeqVgZvvs62t</EncryptedPassword>
</PropertyGroup>
</Project>
10 changes: 5 additions & 5 deletions WebPowerHouseFitness/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Startup(IConfiguration configuration)
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
options.UseSqlServer(Configuration.GetConnectionString("MyDbConnection")));

services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
Expand All @@ -41,14 +41,14 @@ public void ConfigureServices(IServiceCollection services)

// Use SQL Database if in Azure, otherwise, use SQLite
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Production")
services.AddDbContext<MyDatabaseContext>(options =>
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("MyDbConnection")));
else
services.AddDbContext<MyDatabaseContext>(options =>
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlite("Data Source=localdatabase.db"));

// Automatically perform database migration
services.BuildServiceProvider().GetService<MyDatabaseContext>().Database.Migrate();
services.BuildServiceProvider().GetService<ApplicationDbContext>().Database.Migrate();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand All @@ -73,7 +73,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
template: "{controller=Usuarios}/{action=Index}/{id?}");
});
}
}
Expand Down
8 changes: 4 additions & 4 deletions WebPowerHouseFitness/Views/Gimnasios/Create.cshtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@model WebPowerHouseFitness.Models.Gimnasio

@{
ViewData["Title"] = "Create";
ViewData["Title"] = "Crear";
}

<h2>Create</h2>
<h2>Crear</h2>

<h4>Gimnasio</h4>
<hr />
Expand All @@ -28,14 +28,14 @@
<span asp-validation-for="Ciudad" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-default" />
<input type="submit" value="Guardar" class="btn btn-default" />
</div>
</form>
</div>
</div>

<div>
<a asp-action="Index">Back to List</a>
<a asp-action="Index">Volver</a>
</div>

@section Scripts {
Expand Down
10 changes: 5 additions & 5 deletions WebPowerHouseFitness/Views/Gimnasios/Delete.cshtml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@model WebPowerHouseFitness.Models.Gimnasio

@{
ViewData["Title"] = "Delete";
ViewData["Title"] = "Borrar";
}

<h2>Delete</h2>
<h2>Borrar</h2>

<h3>Are you sure you want to delete this?</h3>
<h3>Estás seguro que quieres eliminar esto?</h3>
<div>
<h4>Gimnasio</h4>
<hr />
Expand All @@ -33,7 +33,7 @@

<form asp-action="Delete">
<input type="hidden" asp-for="ID" />
<input type="submit" value="Delete" class="btn btn-default" /> |
<a asp-action="Index">Back to List</a>
<input type="submit" value="Borrar" class="btn btn-default" /> |
<a asp-action="Index">Volver</a>
</form>
</div>
6 changes: 3 additions & 3 deletions WebPowerHouseFitness/Views/Gimnasios/Details.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ViewData["Title"] = "Details";
}

<h2>Details</h2>
<h2>Detalles</h2>

<div>
<h4>Gimnasio</h4>
Expand All @@ -31,6 +31,6 @@
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.ID">Edit</a> |
<a asp-action="Index">Back to List</a>
<a asp-action="Edit" asp-route-id="@Model.ID">Editar</a> |
<a asp-action="Index">Volver</a>
</div>
6 changes: 3 additions & 3 deletions WebPowerHouseFitness/Views/Gimnasios/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ViewData["Title"] = "Edit";
}

<h2>Edit</h2>
<h2>Editar</h2>

<h4>Gimnasio</h4>
<hr />
Expand All @@ -29,14 +29,14 @@
<span asp-validation-for="Ciudad" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-default" />
<input type="submit" value="Guardar" class="btn btn-default" />
</div>
</form>
</div>
</div>

<div>
<a asp-action="Index">Back to List</a>
<a asp-action="Index">Volver</a>
</div>

@section Scripts {
Expand Down
10 changes: 5 additions & 5 deletions WebPowerHouseFitness/Views/Gimnasios/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
ViewData["Title"] = "Index";
}

<h2>Index</h2>
<h2>Gimnasios</h2>

<p>
<a asp-action="Create">Create New</a>
<a asp-action="Create">Crear Nuevo </a>
</p>
<table class="table">
<thead>
Expand Down Expand Up @@ -37,9 +37,9 @@
@Html.DisplayFor(modelItem => item.Ciudad)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-action="Details" asp-route-id="@item.ID">Details</a> |
<a asp-action="Delete" asp-route-id="@item.ID">Delete</a>
<a asp-action="Edit" asp-route-id="@item.ID">Editar</a> |
<a asp-action="Details" asp-route-id="@item.ID">Detalles</a> |
<a asp-action="Delete" asp-route-id="@item.ID">Eliminar</a>
</td>
</tr>
}
Expand Down
48 changes: 20 additions & 28 deletions WebPowerHouseFitness/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,45 @@
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
<img src="~/images/ban1.jpg" alt="ASP.NET" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how to build ASP.NET apps that can run anywhere.
El futuro en administracion de gimnasios esta aqui.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
Learn More
Leer Mas
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
<img src="~/images/ban2.jpg" alt="Visual Studio" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
There are powerful new features in Visual Studio for building modern web apps.
imagen2
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
Learn More
Leer Mas
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" />
<img src="~/images/ban3.jpg" alt="Package Management" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Bring in libraries from NuGet and npm, and automate tasks using Grunt or Gulp.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409">
Learn More
Leer Mas
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" />
<img src="~/images/ban4.jpg" alt="Microsoft Azure" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
Learn More
Leer Mas
</a>
</p>
</div>
Expand All @@ -67,40 +67,32 @@

<div class="row">
<div class="col-md-3">
<h2>Application uses</h2>
<h2>Administrar</h2>
<ul>
<li>Sample pages using ASP.NET Core MVC</li>
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
<li>Gimnasios</li>
<li>Controlar gimnasios <a href="../Gimnasios/Index">Ingresar</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>How to</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
<li><a href="../Usuarios/Index">Usuarios</a></li>

</ul>
</div>
<div class="col-md-3">
<h2>Overview</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
<li><a href="../Anuncios/Index">Anuncios</a></li>
<li><a href="../Itinerarios/Index">Itinerarios</a></li>

</ul>
</div>
<div class="col-md-3">
<h2>Run &amp; Deploy</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li>
<li><a href="../Perfils/Index">Perfil</a></li>

</ul>
</div>
</div>
Loading

0 comments on commit f357696

Please sign in to comment.