├── README.md ├── Vidly ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Account │ │ ├── ExternalLoginFailure.cshtml │ │ ├── ForgotPasswordConfirmation.cshtml │ │ ├── ConfirmEmail.cshtml │ │ ├── ResetPasswordConfirmation.cshtml │ │ ├── SendCode.cshtml │ │ ├── ForgotPassword.cshtml │ │ ├── _ExternalLoginsListPartial.cshtml │ │ ├── VerifyCode.cshtml │ │ ├── ResetPassword.cshtml │ │ ├── ExternalLoginConfirmation.cshtml │ │ ├── Register.cshtml │ │ └── Login.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── Lockout.cshtml │ │ ├── _Layout.cshtml │ │ ├── _LoginPartial.cshtml │ │ └── _NavBar.cshtml │ ├── Customers │ │ ├── Details.cshtml │ │ └── CustomerForm.cshtml │ ├── Movies │ │ ├── Details.cshtml │ │ ├── Random.cshtml │ │ ├── ReadOnlyList.cshtml │ │ ├── MovieForm.cshtml │ │ └── List.cshtml │ ├── Manage │ │ ├── AddPhoneNumber.cshtml │ │ ├── VerifyPhoneNumber.cshtml │ │ ├── SetPassword.cshtml │ │ └── ChangePassword.cshtml │ └── Web.config ├── favicon.ico ├── Global.asax ├── Scripts │ ├── _references.js │ └── DataTables │ │ ├── autoFill.foundation.min.js │ │ ├── autoFill.bootstrap.min.js │ │ ├── autoFill.jqueryui.min.js │ │ ├── responsive.jqueryui.min.js │ │ ├── buttons.bootstrap4.min.js │ │ ├── responsive.foundation.min.js │ │ ├── buttons.bootstrap.min.js │ │ ├── buttons.jqueryui.min.js │ │ ├── buttons.foundation.min.js │ │ ├── autoFill.bootstrap.js │ │ ├── autoFill.foundation.js │ │ ├── autoFill.jqueryui.js │ │ ├── responsive.bootstrap.min.js │ │ ├── buttons.bootstrap4.js │ │ ├── buttons.print.min.js │ │ ├── responsive.jqueryui.js │ │ ├── buttons.jqueryui.js │ │ ├── buttons.bootstrap.js │ │ ├── responsive.foundation.js │ │ ├── dataTables.bootstrap.min.js │ │ ├── dataTables.bootstrap4.min.js │ │ ├── dataTables.foundation.min.js │ │ ├── dataTables.material.min.js │ │ ├── responsive.bootstrap.js │ │ ├── dataTables.semanticui.min.js │ │ ├── buttons.foundation.js │ │ ├── dataTables.uikit.min.js │ │ ├── buttons.colVis.min.js │ │ └── dataTables.jqueryui.min.js ├── Content │ ├── DataTables │ │ ├── images │ │ │ ├── sort_asc.png │ │ │ ├── sort_both.png │ │ │ ├── sort_desc.png │ │ │ ├── details_open.png │ │ │ ├── details_close.png │ │ │ ├── sort_asc_disabled.png │ │ │ └── sort_desc_disabled.png │ │ ├── swf │ │ │ └── flashExport.swf │ │ └── css │ │ │ ├── keyTable.bootstrap.min.css │ │ │ ├── keyTable.dataTables.min.css │ │ │ ├── keyTable.foundation.min.css │ │ │ ├── keyTable.jqueryui.min.css │ │ │ ├── keyTable.bootstrap.css │ │ │ ├── keyTable.dataTables.css │ │ │ ├── keyTable.foundation.css │ │ │ ├── keyTable.jqueryui.css │ │ │ ├── colReorder.jqueryui.min.css │ │ │ ├── colReorder.bootstrap.min.css │ │ │ ├── colReorder.dataTables.min.css │ │ │ ├── colReorder.foundation.min.css │ │ │ ├── fixedColumns.jqueryui.min.css │ │ │ ├── fixedHeader.jqueryui.min.css │ │ │ ├── fixedColumns.jqueryui.css │ │ │ ├── colReorder.bootstrap.css │ │ │ ├── colReorder.dataTables.css │ │ │ ├── colReorder.foundation.css │ │ │ ├── colReorder.jqueryui.css │ │ │ ├── fixedHeader.dataTables.min.css │ │ │ ├── rowReorder.dataTables.min.css │ │ │ ├── rowReorder.jqueryui.min.css │ │ │ ├── fixedHeader.jqueryui.css │ │ │ ├── rowReorder.bootstrap.min.css │ │ │ ├── rowReorder.foundation.min.css │ │ │ ├── fixedColumns.dataTables.min.css │ │ │ ├── fixedHeader.bootstrap.min.css │ │ │ ├── fixedHeader.foundation.min.css │ │ │ ├── scroller.foundation.min.css │ │ │ ├── scroller.jqueryui.min.css │ │ │ ├── scroller.dataTables.min.css │ │ │ ├── fixedHeader.dataTables.css │ │ │ ├── scroller.bootstrap.min.css │ │ │ ├── fixedColumns.dataTables.css │ │ │ ├── scroller.foundation.css │ │ │ ├── fixedHeader.bootstrap.css │ │ │ ├── fixedHeader.foundation.css │ │ │ ├── rowReorder.dataTables.css │ │ │ ├── rowReorder.jqueryui.css │ │ │ ├── rowReorder.bootstrap.css │ │ │ ├── rowReorder.foundation.css │ │ │ ├── fixedColumns.foundation.min.css │ │ │ ├── scroller.dataTables.css │ │ │ ├── scroller.jqueryui.css │ │ │ ├── common.scss │ │ │ ├── scroller.bootstrap.css │ │ │ ├── fixedColumns.foundation.css │ │ │ ├── fixedColumns.bootstrap.min.css │ │ │ ├── dataTables.semanticui.min.css │ │ │ ├── autoFill.bootstrap.min.css │ │ │ ├── autoFill.foundation.min.css │ │ │ ├── fixedColumns.bootstrap.css │ │ │ ├── autoFill.jqueryui.min.css │ │ │ ├── buttons.bootstrap.min.css │ │ │ ├── autoFill.dataTables.min.css │ │ │ ├── dataTables.semanticui.css │ │ │ ├── buttons.foundation.min.css │ │ │ ├── autoFill.bootstrap.css │ │ │ ├── dataTables.material.min.css │ │ │ ├── autoFill.foundation.css │ │ │ ├── autoFill.jqueryui.css │ │ │ ├── dataTables.foundation.min.css │ │ │ ├── autoFill.dataTables.css │ │ │ ├── buttons.bootstrap.css │ │ │ └── buttons.bootstrap4.min.css │ ├── Site.css │ ├── typeahead.css │ └── bootstrap-theme.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── Dtos │ ├── GenreDto.cs │ ├── NewRentalDto.cs │ ├── MembershipTypeDto.cs │ ├── CustomerDto.cs │ └── MovieDto.cs ├── Models │ ├── RoleName.cs │ ├── Genre.cs │ ├── Rental.cs │ ├── MembershipType.cs │ ├── Customer.cs │ ├── ApplicationDbContext.cs │ ├── Movie.cs │ ├── Min18YearsIfAMember.cs │ └── ApplicationUser.cs ├── 404.html ├── Startup.cs ├── ViewModels │ ├── RandomMovieViewModel.cs │ ├── CustomerFormViewModel.cs │ └── MovieFormViewModel.cs ├── Controllers │ ├── RentalsController.cs │ ├── HomeController.cs │ └── Api │ │ └── NewRentalsController.cs ├── App_Start │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ ├── MappingProfile.cs │ ├── WebApiConfig.cs │ └── BundleConfig.cs ├── Migrations │ ├── 201604050626453_AddBirthdateToCustomer.cs │ ├── 201604050620598_AddNameToMembershipType.cs │ ├── 201604220403453_AddPhoneToApplicationUser.cs │ ├── 201604050035427_AddIsSubscribedToCustomer.cs │ ├── 201604050216273_ApplyAnnotationsToCustomerName.cs │ ├── 201604210511510_AddDrivingLicenseToApplicationUser.cs │ ├── 201605020226564_AddNumberAvailableToMovie.cs │ ├── 201604050621225_SetNameOfMembershipTypes.cs │ ├── 201604050707219_Genres.cs │ ├── 201604050143242_PopulateMembershipTypes.cs │ ├── 201604050707219_Genres.Designer.cs │ ├── 201604050706359_AddMovie.Designer.cs │ ├── 201604210211534_SeedUsers.Designer.cs │ ├── 201605020104315_AddRental.Designer.cs │ ├── 201604040445246_InitialModel.Designer.cs │ ├── 201604050041345_AddMembershipType.Designer.cs │ ├── 201604050626453_AddBirthdateToCustomer.Designer.cs │ ├── 201604050143242_PopulateMembershipTypes.Designer.cs │ ├── 201604050620598_AddNameToMembershipType.Designer.cs │ ├── 201604050035427_AddIsSubscribedToCustomer.Designer.cs │ ├── 201604050621225_SetNameOfMembershipTypes.Designer.cs │ ├── 201604220403453_AddPhoneToApplicationUser.Designer.cs │ ├── 201605020226564_AddNumberAvailableToMovie.Designer.cs │ ├── 201604050216273_ApplyAnnotationsToCustomerName.Designer.cs │ ├── 201604210511510_AddDrivingLicenseToApplicationUser.Designer.cs │ ├── Configuration.cs │ ├── 201604050041345_AddMembershipType.cs │ ├── 201605020104315_AddRental.cs │ ├── 201604210211534_SeedUsers.cs │ └── 201604050706359_AddMovie.cs ├── Global.asax.cs ├── Properties │ ├── PublishProfiles │ │ ├── Testing.pubxml │ │ └── GoDaddyProfile.pubxml │ └── AssemblyInfo.cs ├── GlimpseSecurityPolicy.cs ├── Web.Debug.config ├── Web.Release.config └── Web.Testing.config ├── Vidly.sln └── .gitattributes /README.md: -------------------------------------------------------------------------------- 1 | # vidly-mvc-5 2 | A new line of code 3 | -------------------------------------------------------------------------------- /Vidly/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /Vidly/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/favicon.ico -------------------------------------------------------------------------------- /Vidly/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Vidly.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Vidly/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Scripts/_references.js -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/sort_asc.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/sort_both.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/sort_desc.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/swf/flashExport.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/swf/flashExport.swf -------------------------------------------------------------------------------- /Vidly/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Vidly/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Vidly/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.bootstrap.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus,table.dataTable td.focus{outline:3px solid #337ab7;outline-offset:-1px} 2 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.dataTables.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus,table.dataTable td.focus{outline:3px solid #3366FF;outline-offset:-1px} 2 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.foundation.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus,table.dataTable td.focus{outline:3px solid #008CBA;outline-offset:-1px} 2 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.jqueryui.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus,table.dataTable td.focus{outline:3px solid #3366FF;outline-offset:-1px} 2 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/details_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/details_open.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/details_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/details_close.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/sort_asc_disabled.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/images/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/vidly-mvc-5/HEAD/Vidly/Content/DataTables/images/sort_desc_disabled.png -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.bootstrap.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus, 2 | table.dataTable td.focus { 3 | outline: 3px solid #337ab7; 4 | outline-offset: -1px; 5 | } 6 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.dataTables.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus, 2 | table.dataTable td.focus { 3 | outline: 3px solid #3366FF; 4 | outline-offset: -1px; 5 | } 6 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.foundation.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus, 2 | table.dataTable td.focus { 3 | outline: 3px solid #008CBA; 4 | outline-offset: -1px; 5 | } 6 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/keyTable.jqueryui.css: -------------------------------------------------------------------------------- 1 | table.dataTable th.focus, 2 | table.dataTable td.focus { 3 | outline: 3px solid #3366FF; 4 | outline-offset: -1px; 5 | } 6 | -------------------------------------------------------------------------------- /Vidly/Dtos/GenreDto.cs: -------------------------------------------------------------------------------- 1 | namespace Vidly.Dtos 2 | { 3 | public class GenreDto 4 | { 5 | public byte Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Vidly/Models/RoleName.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace Vidly.Models 3 | { 4 | public static class RoleName 5 | { 6 | public const string CanManageMovies = "CanManageMovies"; 7 | } 8 | } -------------------------------------------------------------------------------- /Vidly/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /Vidly/Content/DataTables/css/colReorder.jqueryui.min.css: -------------------------------------------------------------------------------- 1 | table.DTCR_clonedTable.dataTable{position:absolute !important;background-color:rgba(255,255,255,0.7);z-index:202}div.DTCR_pointer{width:1px;background-color:#0259C4;z-index:201} 2 | -------------------------------------------------------------------------------- /Vidly/Views/Account/ExternalLoginFailure.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Login Failure"; 3 | } 4 | 5 | 6 |10 | Please check your email to reset your password. 11 |
12 |8 | Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) 9 |
10 |10 | Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) 11 |
12 || Movie | 14 |Genre | 15 |
|---|
11 | There are no external authentication services configured. See this article 12 | for details on setting up this ASP.NET application to support logging in via external services. 13 |
14 |8 | You do not have a local username/password for this site. Add a local 9 | account so you can log in without an external login. 10 |
11 | 12 | @using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 13 | { 14 | @Html.AntiForgeryToken() 15 | 16 |ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
8 | 9 |15 | ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that 16 | enables a clean separation of concerns and gives you full control over markup 17 | for enjoyable, agile development. 18 |
19 | 20 |NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
24 | 25 |You can easily find a web hosting company that offers the right mix of features and price for your applications.
29 | 30 |
21 | @foreach (AuthenticationDescription p in loginProviders) { 22 | 23 | } 24 |
25 |