├── .vs ├── ASP.NET-Core-MVC-Example │ └── v15 │ │ └── .suo ├── VSWorkspaceState.json └── slnx.sqlite ├── EmployeeApplication ├── .vs │ ├── EmployeeApplication │ │ └── v15 │ │ │ ├── .suo │ │ │ └── sqlite3 │ │ │ └── storage.ide │ └── config │ │ └── applicationhost.config ├── EmployeeApplication.sln └── EmployeeApplication │ ├── .bowerrc │ ├── Controllers │ ├── EmployeeController.cs │ └── HomeController.cs │ ├── EmployeeApplication.csproj │ ├── EmployeeApplication.csproj.user │ ├── Models │ ├── EmployeeData.cs │ ├── EmployeeViewModel.cs │ └── ErrorViewModel.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── ScaffoldingReadMe.txt │ ├── Startup.cs │ ├── Views │ ├── Employee │ │ ├── AddEmployee.cshtml │ │ └── Index.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ └── Debug │ │ └── netcoreapp2.0 │ │ ├── EmployeeApplication.deps.json │ │ ├── EmployeeApplication.dll │ │ ├── EmployeeApplication.pdb │ │ ├── EmployeeApplication.runtimeconfig.dev.json │ │ └── EmployeeApplication.runtimeconfig.json │ ├── bower.json │ ├── bundleconfig.json │ ├── obj │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── EmployeeApplication.AssemblyInfo.cs │ │ │ ├── EmployeeApplication.AssemblyInfoInputs.cache │ │ │ ├── EmployeeApplication.csproj.CoreCompileInputs.cache │ │ │ ├── EmployeeApplication.csproj.FileListAbsolute.txt │ │ │ ├── EmployeeApplication.csprojResolveAssemblyReference.cache │ │ │ ├── EmployeeApplication.dll │ │ │ └── EmployeeApplication.pdb │ ├── EmployeeApplication.csproj.nuget.cache │ ├── EmployeeApplication.csproj.nuget.g.props │ ├── EmployeeApplication.csproj.nuget.g.targets │ ├── Release │ │ └── netcoreapp2.0 │ │ │ ├── EmployeeApplication.AssemblyInfo.cs │ │ │ ├── EmployeeApplication.AssemblyInfoInputs.cache │ │ │ └── EmployeeApplication.csproj.CoreCompileInputs.cache │ └── project.assets.json │ └── wwwroot │ ├── css │ ├── site.css │ └── site.min.css │ ├── favicon.ico │ ├── images │ ├── banner1.svg │ ├── banner2.svg │ ├── banner3.svg │ └── banner4.svg │ ├── js │ ├── site.js │ └── site.min.js │ └── lib │ ├── bootstrap │ ├── .bower.json │ ├── LICENSE │ └── dist │ │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── jquery-validation-unobtrusive │ ├── .bower.json │ ├── jquery.validate.unobtrusive.js │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ ├── .bower.json │ ├── LICENSE.md │ └── dist │ │ ├── additional-methods.js │ │ ├── additional-methods.min.js │ │ ├── jquery.validate.js │ │ └── jquery.validate.min.js │ └── jquery │ ├── .bower.json │ ├── LICENSE.txt │ └── dist │ ├── jquery.js │ ├── jquery.min.js │ └── jquery.min.map ├── FirstCRUDApplication ├── .vs │ ├── FirstCRUDApplication │ │ └── v15 │ │ │ ├── .suo │ │ │ └── sqlite3 │ │ │ └── storage.ide │ └── config │ │ └── applicationhost.config ├── FirstCRUDApplication.sln └── FirstCRUDApplication │ ├── .bowerrc │ ├── Code │ └── ModalSize.cs │ ├── Controllers │ ├── BookController.cs │ └── HomeController.cs │ ├── DbEntities │ ├── BaseEntity.cs │ ├── Book.cs │ ├── BookMap.cs │ └── CRUDContext.cs │ ├── FirstCRUDApplication.csproj │ ├── Migrations │ ├── 20170821021916_InitialCreate.Designer.cs │ ├── 20170821021916_InitialCreate.cs │ └── CRUDContextModelSnapshot.cs │ ├── Models │ ├── BookViewModel.cs │ ├── BootstrapModel.cs │ ├── ErrorViewModel.cs │ ├── ModalFooter.cs │ └── ModalHeader.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── Startup.cs │ ├── Views │ ├── Book │ │ ├── Index.cshtml │ │ ├── _AddEditBook.cshtml │ │ └── _DeleteBook.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ ├── _Modal.cshtml │ │ ├── _ModalFooter.cshtml │ │ ├── _ModalHeader.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ └── Debug │ │ └── netcoreapp2.0 │ │ ├── FirstCRUDApplication.deps.json │ │ ├── FirstCRUDApplication.dll │ │ ├── FirstCRUDApplication.pdb │ │ ├── FirstCRUDApplication.runtimeconfig.dev.json │ │ └── FirstCRUDApplication.runtimeconfig.json │ ├── bower.json │ ├── bundleconfig.json │ ├── obj │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── FirstCRUDApplication.AssemblyInfo.cs │ │ │ ├── FirstCRUDApplication.AssemblyInfoInputs.cache │ │ │ ├── FirstCRUDApplication.csproj.CoreCompileInputs.cache │ │ │ ├── FirstCRUDApplication.csproj.FileListAbsolute.txt │ │ │ ├── FirstCRUDApplication.csprojResolveAssemblyReference.cache │ │ │ ├── FirstCRUDApplication.dll │ │ │ └── FirstCRUDApplication.pdb │ ├── FirstCRUDApplication.csproj.EntityFrameworkCore.targets │ ├── FirstCRUDApplication.csproj.nuget.cache │ ├── FirstCRUDApplication.csproj.nuget.g.props │ ├── FirstCRUDApplication.csproj.nuget.g.targets │ ├── Release │ │ └── netcoreapp2.0 │ │ │ ├── FirstCRUDApplication.AssemblyInfo.cs │ │ │ ├── FirstCRUDApplication.AssemblyInfoInputs.cache │ │ │ └── FirstCRUDApplication.csproj.CoreCompileInputs.cache │ └── project.assets.json │ └── wwwroot │ ├── css │ ├── site.css │ └── site.min.css │ ├── favicon.ico │ ├── images │ ├── banner1.svg │ ├── banner2.svg │ ├── banner3.svg │ └── banner4.svg │ ├── js │ ├── book-index.js │ ├── site.js │ └── site.min.js │ └── lib │ ├── bootstrap │ ├── .bower.json │ ├── LICENSE │ └── dist │ │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── jquery-validation-unobtrusive │ ├── .bower.json │ ├── jquery.validate.unobtrusive.js │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ ├── .bower.json │ ├── LICENSE.md │ └── dist │ │ ├── additional-methods.js │ │ ├── additional-methods.min.js │ │ ├── jquery.validate.js │ │ └── jquery.validate.min.js │ └── jquery │ ├── .bower.json │ ├── LICENSE.txt │ └── dist │ ├── jquery.js │ ├── jquery.min.js │ └── jquery.min.map ├── GenericRepository ├── .vs │ ├── GenericRepository │ │ └── v15 │ │ │ ├── .suo │ │ │ └── sqlite3 │ │ │ └── storage.ide │ └── config │ │ └── applicationhost.config ├── GRP.Data │ ├── Address.cs │ ├── AddressMap.cs │ ├── ApplicationContext.cs │ ├── BaseEntity.cs │ ├── Customer.cs │ ├── CustomerMap.cs │ ├── GRP.Data.csproj │ ├── IRepository.cs │ ├── Migrations │ │ ├── 20170917181341_InitialMigration.Designer.cs │ │ ├── 20170917181341_InitialMigration.cs │ │ └── ApplicationContextModelSnapshot.cs │ ├── Repository.cs │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── GRP.Data.deps.json │ │ │ ├── GRP.Data.dll │ │ │ └── GRP.Data.pdb │ └── obj │ │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── GRP.Data.AssemblyInfo.cs │ │ │ ├── GRP.Data.AssemblyInfoInputs.cache │ │ │ ├── GRP.Data.csproj.CoreCompileInputs.cache │ │ │ ├── GRP.Data.csproj.FileListAbsolute.txt │ │ │ ├── GRP.Data.csprojResolveAssemblyReference.cache │ │ │ ├── GRP.Data.dll │ │ │ └── GRP.Data.pdb │ │ ├── GRP.Data.csproj.EntityFrameworkCore.targets │ │ ├── GRP.Data.csproj.nuget.cache │ │ ├── GRP.Data.csproj.nuget.g.props │ │ ├── GRP.Data.csproj.nuget.g.targets │ │ └── project.assets.json ├── GRP.Web │ ├── .bowerrc │ ├── Code │ │ └── ModelSize.cs │ ├── Controllers │ │ ├── CustomerController.cs │ │ └── HomeController.cs │ ├── DesignTimeDbContextFactory.cs │ ├── GRP.Web.csproj │ ├── GRP.Web.csproj.user │ ├── Models │ │ ├── BootstrapModel.cs │ │ ├── CustomerListingViewModel.cs │ │ ├── CustomerViewModel.cs │ │ ├── ErrorViewModel.cs │ │ ├── ModalFooter.cs │ │ └── ModalHeader.cs │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── ScaffoldingReadMe.txt │ ├── Startup.cs │ ├── Views │ │ ├── Customer │ │ │ ├── Index.cshtml │ │ │ ├── _AddEditCustomer.cshtml │ │ │ └── _DeleteCustomer.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ ├── Contact.cshtml │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── _Layout.cshtml │ │ │ ├── _Modal.cshtml │ │ │ ├── _ModalFooter.cshtml │ │ │ ├── _ModalHeader.cshtml │ │ │ └── _ValidationScriptsPartial.cshtml │ │ ├── _ViewImports.cshtml │ │ └── _ViewStart.cshtml │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── GRP.Data.dll │ │ │ ├── GRP.Data.pdb │ │ │ ├── GRP.Web.deps.json │ │ │ ├── GRP.Web.dll │ │ │ ├── GRP.Web.pdb │ │ │ ├── GRP.Web.runtimeconfig.dev.json │ │ │ └── GRP.Web.runtimeconfig.json │ ├── bower.json │ ├── bundleconfig.json │ ├── obj │ │ ├── Debug │ │ │ └── netcoreapp2.0 │ │ │ │ ├── GRP.Web.AssemblyInfo.cs │ │ │ │ ├── GRP.Web.AssemblyInfoInputs.cache │ │ │ │ ├── GRP.Web.csproj.CopyComplete │ │ │ │ ├── GRP.Web.csproj.CoreCompileInputs.cache │ │ │ │ ├── GRP.Web.csproj.FileListAbsolute.txt │ │ │ │ ├── GRP.Web.csprojResolveAssemblyReference.cache │ │ │ │ ├── GRP.Web.dll │ │ │ │ └── GRP.Web.pdb │ │ ├── GRP.Web.csproj.EntityFrameworkCore.targets │ │ ├── GRP.Web.csproj.nuget.cache │ │ ├── GRP.Web.csproj.nuget.g.props │ │ ├── GRP.Web.csproj.nuget.g.targets │ │ └── project.assets.json │ └── wwwroot │ │ ├── css │ │ ├── site.css │ │ └── site.min.css │ │ ├── favicon.ico │ │ ├── images │ │ ├── banner1.svg │ │ ├── banner2.svg │ │ ├── banner3.svg │ │ └── banner4.svg │ │ ├── js │ │ ├── customer-index.js │ │ ├── site.js │ │ └── site.min.js │ │ └── lib │ │ ├── bootstrap │ │ ├── .bower.json │ │ ├── LICENSE │ │ └── dist │ │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap-theme.min.css.map │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ └── npm.js │ │ ├── jquery-validation-unobtrusive │ │ ├── .bower.json │ │ ├── jquery.validate.unobtrusive.js │ │ └── jquery.validate.unobtrusive.min.js │ │ ├── jquery-validation │ │ ├── .bower.json │ │ ├── LICENSE.md │ │ └── dist │ │ │ ├── additional-methods.js │ │ │ ├── additional-methods.min.js │ │ │ ├── jquery.validate.js │ │ │ └── jquery.validate.min.js │ │ └── jquery │ │ ├── .bower.json │ │ ├── LICENSE.txt │ │ └── dist │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ └── jquery.min.map └── GenericRepository.sln ├── OnionArchitectureApp ├── .vs │ ├── OnionArchitectureApp │ │ └── v15 │ │ │ ├── .suo │ │ │ └── sqlite3 │ │ │ └── storage.ide │ └── config │ │ └── applicationhost.config ├── OAA.Data │ ├── ApplicationContext.cs │ ├── Author.cs │ ├── AuthorMap.cs │ ├── BaseEntity.cs │ ├── Book.cs │ ├── BookMap.cs │ ├── Migrations │ │ ├── 20170930182735_InitialMigration.Designer.cs │ │ ├── 20170930182735_InitialMigration.cs │ │ └── ApplicationContextModelSnapshot.cs │ ├── OAA.Data.csproj │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Data.deps.json │ │ │ ├── OAA.Data.dll │ │ │ └── OAA.Data.pdb │ └── obj │ │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Data.AssemblyInfo.cs │ │ │ ├── OAA.Data.AssemblyInfoInputs.cache │ │ │ ├── OAA.Data.csproj.CoreCompileInputs.cache │ │ │ ├── OAA.Data.csproj.FileListAbsolute.txt │ │ │ ├── OAA.Data.csprojResolveAssemblyReference.cache │ │ │ ├── OAA.Data.dll │ │ │ └── OAA.Data.pdb │ │ ├── OAA.Data.csproj.EntityFrameworkCore.targets │ │ ├── OAA.Data.csproj.nuget.cache │ │ ├── OAA.Data.csproj.nuget.g.props │ │ ├── OAA.Data.csproj.nuget.g.targets │ │ └── project.assets.json ├── OAA.Repo │ ├── IRepository.cs │ ├── OAA.Repo.csproj │ ├── Repository.cs │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Data.dll │ │ │ ├── OAA.Data.pdb │ │ │ ├── OAA.Repo.deps.json │ │ │ ├── OAA.Repo.dll │ │ │ └── OAA.Repo.pdb │ └── obj │ │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Repo.AssemblyInfo.cs │ │ │ ├── OAA.Repo.AssemblyInfoInputs.cache │ │ │ ├── OAA.Repo.csproj.CopyComplete │ │ │ ├── OAA.Repo.csproj.CoreCompileInputs.cache │ │ │ ├── OAA.Repo.csproj.FileListAbsolute.txt │ │ │ ├── OAA.Repo.csprojResolveAssemblyReference.cache │ │ │ ├── OAA.Repo.dll │ │ │ └── OAA.Repo.pdb │ │ ├── OAA.Repo.csproj.nuget.cache │ │ ├── OAA.Repo.csproj.nuget.g.props │ │ ├── OAA.Repo.csproj.nuget.g.targets │ │ └── project.assets.json ├── OAA.Service │ ├── AuthorService.cs │ ├── BookService.cs │ ├── IAuthorService.cs │ ├── IBookService.cs │ ├── OAA.Service.csproj │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Data.dll │ │ │ ├── OAA.Data.pdb │ │ │ ├── OAA.Repo.dll │ │ │ ├── OAA.Repo.pdb │ │ │ ├── OAA.Service.deps.json │ │ │ ├── OAA.Service.dll │ │ │ └── OAA.Service.pdb │ └── obj │ │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Service.AssemblyInfo.cs │ │ │ ├── OAA.Service.AssemblyInfoInputs.cache │ │ │ ├── OAA.Service.csproj.CopyComplete │ │ │ ├── OAA.Service.csproj.CoreCompileInputs.cache │ │ │ ├── OAA.Service.csproj.FileListAbsolute.txt │ │ │ ├── OAA.Service.csprojResolveAssemblyReference.cache │ │ │ ├── OAA.Service.dll │ │ │ └── OAA.Service.pdb │ │ ├── OAA.Service.csproj.nuget.cache │ │ ├── OAA.Service.csproj.nuget.g.props │ │ ├── OAA.Service.csproj.nuget.g.targets │ │ └── project.assets.json ├── OAA.Web │ ├── .bowerrc │ ├── Code │ │ └── ModalSize.cs │ ├── Controllers │ │ ├── AuthorController.cs │ │ ├── BookController.cs │ │ └── HomeController.cs │ ├── DesignTimeDbContextFactory.cs │ ├── Models │ │ ├── AuthorBookViewModel.cs │ │ ├── AuthorListingViewModel.cs │ │ ├── AuthorViewModel.cs │ │ ├── BookListingViewModel.cs │ │ ├── BookViewModel.cs │ │ ├── BootstrapModel.cs │ │ ├── EditBookViewModel.cs │ │ ├── ErrorViewModel.cs │ │ ├── ModalFooter.cs │ │ └── ModalHeader.cs │ ├── OAA.Web.csproj │ ├── OAA.Web.csproj.user │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Views │ │ ├── Author │ │ │ ├── Index.cshtml │ │ │ ├── _AddAuthor.cshtml │ │ │ ├── _AddBook.cshtml │ │ │ └── _EditAuthor.cshtml │ │ ├── Book │ │ │ ├── Index.cshtml │ │ │ ├── _DeleteBook.cshtml │ │ │ └── _EditBook.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ ├── Contact.cshtml │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── _Layout.cshtml │ │ │ ├── _Modal.cshtml │ │ │ ├── _ModalFooter.cshtml │ │ │ ├── _ModalHeader.cshtml │ │ │ └── _ValidationScriptsPartial.cshtml │ │ ├── _ViewImports.cshtml │ │ └── _ViewStart.cshtml │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── OAA.Data.dll │ │ │ ├── OAA.Data.pdb │ │ │ ├── OAA.Repo.dll │ │ │ ├── OAA.Repo.pdb │ │ │ ├── OAA.Service.dll │ │ │ ├── OAA.Service.pdb │ │ │ ├── OAA.Web.deps.json │ │ │ ├── OAA.Web.dll │ │ │ ├── OAA.Web.pdb │ │ │ ├── OAA.Web.runtimeconfig.dev.json │ │ │ └── OAA.Web.runtimeconfig.json │ ├── bower.json │ ├── bundleconfig.json │ ├── obj │ │ ├── Debug │ │ │ └── netcoreapp2.0 │ │ │ │ ├── OAA.Web.AssemblyInfo.cs │ │ │ │ ├── OAA.Web.AssemblyInfoInputs.cache │ │ │ │ ├── OAA.Web.csproj.CopyComplete │ │ │ │ ├── OAA.Web.csproj.CoreCompileInputs.cache │ │ │ │ ├── OAA.Web.csproj.FileListAbsolute.txt │ │ │ │ ├── OAA.Web.csprojResolveAssemblyReference.cache │ │ │ │ ├── OAA.Web.dll │ │ │ │ └── OAA.Web.pdb │ │ ├── OAA.Web.csproj.EntityFrameworkCore.targets │ │ ├── OAA.Web.csproj.nuget.cache │ │ ├── OAA.Web.csproj.nuget.g.props │ │ ├── OAA.Web.csproj.nuget.g.targets │ │ └── project.assets.json │ └── wwwroot │ │ ├── css │ │ ├── site.css │ │ └── site.min.css │ │ ├── favicon.ico │ │ ├── images │ │ ├── banner1.svg │ │ ├── banner2.svg │ │ ├── banner3.svg │ │ └── banner4.svg │ │ ├── js │ │ ├── author-index.js │ │ ├── book-index.js │ │ ├── site.js │ │ └── site.min.js │ │ └── lib │ │ ├── bootstrap │ │ ├── .bower.json │ │ ├── LICENSE │ │ └── dist │ │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap-theme.min.css.map │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ └── npm.js │ │ ├── jquery-validation-unobtrusive │ │ ├── .bower.json │ │ ├── jquery.validate.unobtrusive.js │ │ └── jquery.validate.unobtrusive.min.js │ │ ├── jquery-validation │ │ ├── .bower.json │ │ ├── LICENSE.md │ │ └── dist │ │ │ ├── additional-methods.js │ │ │ ├── additional-methods.min.js │ │ │ ├── jquery.validate.js │ │ │ └── jquery.validate.min.js │ │ └── jquery │ │ ├── .bower.json │ │ ├── LICENSE.txt │ │ └── dist │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ └── jquery.min.map └── OnionArchitectureApp.sln ├── README.md └── RepositoryPattern ├── .vs ├── RepositoryPattern │ └── v15 │ │ ├── .suo │ │ └── sqlite3 │ │ └── storage.ide └── config │ └── applicationhost.config ├── RP.Data ├── ApplicationContext.cs ├── BaseEntity.cs ├── Employee.cs ├── EmployeeMap.cs ├── EmployeeRepository.cs ├── IEmployeeRepository.cs ├── Migrations │ ├── 20170903070336_InitialMigration.Designer.cs │ ├── 20170903070336_InitialMigration.cs │ └── ApplicationContextModelSnapshot.cs ├── RP.Data.csproj ├── bin │ └── Debug │ │ └── netcoreapp2.0 │ │ ├── RP.Data.deps.json │ │ ├── RP.Data.dll │ │ └── RP.Data.pdb └── obj │ ├── Debug │ └── netcoreapp2.0 │ │ ├── RP.Data.AssemblyInfo.cs │ │ ├── RP.Data.AssemblyInfoInputs.cache │ │ ├── RP.Data.csproj.CoreCompileInputs.cache │ │ ├── RP.Data.csproj.FileListAbsolute.txt │ │ ├── RP.Data.csprojResolveAssemblyReference.cache │ │ ├── RP.Data.dll │ │ └── RP.Data.pdb │ ├── RP.Data.csproj.EntityFrameworkCore.targets │ ├── RP.Data.csproj.nuget.cache │ ├── RP.Data.csproj.nuget.g.props │ ├── RP.Data.csproj.nuget.g.targets │ └── project.assets.json ├── RP.Web ├── .bowerrc ├── Code │ └── ModelSize.cs ├── Controllers │ ├── EmployeeController.cs │ └── HomeController.cs ├── DesignTimeDbContextFactory.cs ├── Models │ ├── BootstrapModel.cs │ ├── EmployeeViewModel.cs │ ├── ErrorViewModel.cs │ ├── ModalFooter.cs │ └── ModalHeader.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── RP.Web.csproj ├── Startup.cs ├── Views │ ├── Employee │ │ ├── Index.cshtml │ │ ├── _AddEditEmployee.cshtml │ │ └── _DeleteEmployee.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ ├── _Modal.cshtml │ │ ├── _ModalFooter.cshtml │ │ ├── _ModalHeader.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml ├── appsettings.Development.json ├── appsettings.json ├── bin │ └── Debug │ │ └── netcoreapp2.0 │ │ ├── RP.Data.dll │ │ ├── RP.Data.pdb │ │ ├── RP.Web.deps.json │ │ ├── RP.Web.dll │ │ ├── RP.Web.pdb │ │ ├── RP.Web.runtimeconfig.dev.json │ │ └── RP.Web.runtimeconfig.json ├── bower.json ├── bundleconfig.json ├── obj │ ├── Debug │ │ └── netcoreapp2.0 │ │ │ ├── RP.Web.AssemblyInfo.cs │ │ │ ├── RP.Web.AssemblyInfoInputs.cache │ │ │ ├── RP.Web.csproj.CopyComplete │ │ │ ├── RP.Web.csproj.CoreCompileInputs.cache │ │ │ ├── RP.Web.csproj.FileListAbsolute.txt │ │ │ ├── RP.Web.csprojResolveAssemblyReference.cache │ │ │ ├── RP.Web.dll │ │ │ └── RP.Web.pdb │ ├── RP.Web.csproj.EntityFrameworkCore.targets │ ├── RP.Web.csproj.nuget.cache │ ├── RP.Web.csproj.nuget.g.props │ ├── RP.Web.csproj.nuget.g.targets │ └── project.assets.json └── wwwroot │ ├── css │ ├── site.css │ └── site.min.css │ ├── favicon.ico │ ├── images │ ├── banner1.svg │ ├── banner2.svg │ ├── banner3.svg │ └── banner4.svg │ ├── js │ ├── employee-index.js │ ├── site.js │ └── site.min.js │ └── lib │ ├── bootstrap │ ├── .bower.json │ ├── LICENSE │ └── dist │ │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── jquery-validation-unobtrusive │ ├── .bower.json │ ├── jquery.validate.unobtrusive.js │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ ├── .bower.json │ ├── LICENSE.md │ └── dist │ │ ├── additional-methods.js │ │ ├── additional-methods.min.js │ │ ├── jquery.validate.js │ │ └── jquery.validate.min.js │ └── jquery │ ├── .bower.json │ ├── LICENSE.txt │ └── dist │ ├── jquery.js │ ├── jquery.min.js │ └── jquery.min.map └── RepositoryPattern.sln /.vs/ASP.NET-Core-MVC-Example/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/.vs/ASP.NET-Core-MVC-Example/v15/.suo -------------------------------------------------------------------------------- /.vs/VSWorkspaceState.json: -------------------------------------------------------------------------------- 1 | { 2 | "ExpandedNodes": [ 3 | "" 4 | ], 5 | "PreviewInSolutionExplorer": false 6 | } -------------------------------------------------------------------------------- /.vs/slnx.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/.vs/slnx.sqlite -------------------------------------------------------------------------------- /EmployeeApplication/.vs/EmployeeApplication/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/.vs/EmployeeApplication/v15/.suo -------------------------------------------------------------------------------- /EmployeeApplication/.vs/EmployeeApplication/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/.vs/EmployeeApplication/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Controllers/EmployeeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | using EmployeeApplication.Models; 7 | 8 | // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 9 | 10 | namespace EmployeeApplication.Controllers 11 | { 12 | public class EmployeeController : Controller 13 | { 14 | [HttpGet] 15 | public IActionResult Index() 16 | { 17 | return View(EmployeeData.Employees); 18 | } 19 | 20 | [HttpGet] 21 | public IActionResult AddEmployee() 22 | { 23 | EmployeeViewModel model = new EmployeeViewModel(); 24 | return View(model); 25 | } 26 | 27 | [HttpPost] 28 | public IActionResult AddEmployee(EmployeeViewModel model) 29 | { 30 | if (ModelState.IsValid) 31 | { 32 | EmployeeData.Employees.Add(model); 33 | } 34 | return RedirectToAction("Index"); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using EmployeeApplication.Models; 8 | 9 | namespace EmployeeApplication.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/EmployeeApplication.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/EmployeeApplication.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 600 5 | 600 6 | True 7 | False 8 | False 9 | 10 | 11 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Models/EmployeeData.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EmployeeApplication.Models 4 | { 5 | public class EmployeeData 6 | { 7 | public static List Employees { get; set; } = new List(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Models/EmployeeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EmployeeApplication.Models 4 | { 5 | public class EmployeeViewModel 6 | { 7 | public long EmployeeId { get; set; } 8 | [Display(Name = "First Name")] 9 | public string FirstName { get; set; } 10 | [Display(Name = "Last Name")] 11 | public string LastName { get; set; } 12 | public string Name { get; set; } 13 | public string Email { get; set; } 14 | [Display(Name = "Mobile No")] 15 | public string MobileNo { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EmployeeApplication.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace EmployeeApplication 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:52698/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "EmployeeApplication": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:52699/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using EmployeeApplication 2 | @using EmployeeApplication.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.dll -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.pdb -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Sandeep\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Sandeep\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bin/Debug/netcoreapp2.0/EmployeeApplication.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.7", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 498933fbf5ce15ab66ba38b8173be2aad5fa701e 2 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | af3f8b7bb7be1376867a4d8087a329a115f08bd4 2 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.dll -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/obj/Debug/netcoreapp2.0/EmployeeApplication.pdb -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/EmployeeApplication.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "yH3fHEb9ZNLYDXRFNiYdileKU/gotfx0vWM4lblmufxOz85/aISir0RypLt5VKZpisvzzygY6drnEUjk6kwFVA==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Release/netcoreapp2.0/EmployeeApplication.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 6ea10ed563b2d8cf18567abe854dddfc760d4054 2 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/obj/Release/netcoreapp2.0/EmployeeApplication.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | af3f8b7bb7be1376867a4d8087a329a115f08bd4 2 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | .top-buffer { 13 | margin-top: 15px; 14 | } 15 | 16 | /* Carousel */ 17 | .carousel-caption p { 18 | font-size: 20px; 19 | line-height: 1.4; 20 | } 21 | 22 | /* Make .svg files in the carousel display properly in older browsers */ 23 | .carousel-inner .item img[src$=".svg"] { 24 | width: 100%; 25 | } 26 | 27 | /* QR code generator */ 28 | #qrCode { 29 | margin: 15px; 30 | } 31 | 32 | /* Hide/rearrange for smaller screens */ 33 | @media screen and (max-width: 767px) { 34 | /* Hide captions */ 35 | .carousel-caption { 36 | display: none; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/favicon.ico -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /EmployeeApplication/EmployeeApplication/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/.vs/FirstCRUDApplication/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/.vs/FirstCRUDApplication/v15/.suo -------------------------------------------------------------------------------- /FirstCRUDApplication/.vs/FirstCRUDApplication/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/.vs/FirstCRUDApplication/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Code/ModalSize.cs: -------------------------------------------------------------------------------- 1 | namespace FirstCRUDApplication.Code 2 | { 3 | public enum ModalSize 4 | { 5 | Small, 6 | Large, 7 | Medium 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using FirstCRUDApplication.Models; 8 | 9 | namespace FirstCRUDApplication.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/DbEntities/BaseEntity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FirstCRUDApplication.DbEntities 4 | { 5 | public class BaseEntity 6 | { 7 | public Int64 Id { get; set; } 8 | public DateTime AddedDate { get; set; } 9 | public DateTime ModifiedDate { get; set; } 10 | public string IPAddress { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/DbEntities/Book.cs: -------------------------------------------------------------------------------- 1 | namespace FirstCRUDApplication.DbEntities 2 | { 3 | public class Book:BaseEntity 4 | { 5 | public string Name { get; set; } 6 | public string ISBN { get; set; } 7 | public string Author { get; set; } 8 | public string Publisher { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/DbEntities/BookMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | 3 | namespace FirstCRUDApplication.DbEntities 4 | { 5 | public class BookMap 6 | { 7 | public BookMap(EntityTypeBuilder entityBuilder) 8 | { 9 | entityBuilder.HasKey(t => t.Id); 10 | entityBuilder.Property(t => t.Name).IsRequired(); 11 | entityBuilder.Property(t => t.ISBN).IsRequired(); 12 | entityBuilder.Property(t => t.Author).IsRequired(); 13 | entityBuilder.Property(t => t.Publisher).IsRequired(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/DbEntities/CRUDContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace FirstCRUDApplication.DbEntities 4 | { 5 | public class CRUDContext:DbContext 6 | { 7 | public CRUDContext(DbContextOptions options) : base(options) 8 | { 9 | } 10 | protected override void OnModelCreating(ModelBuilder modelBuilder) 11 | { 12 | base.OnModelCreating(modelBuilder); 13 | 14 | new BookMap(modelBuilder.Entity()); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/FirstCRUDApplication.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Models/BookViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace FirstCRUDApplication.Models 4 | { 5 | public class BookViewModel 6 | { 7 | public long Id { get; set; } 8 | public string Name { get; set; } 9 | [Display(Name = "ISBN No")] 10 | public string ISBN { get; set; } 11 | public string Author { get; set; } 12 | public string Publisher { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Models/BootstrapModel.cs: -------------------------------------------------------------------------------- 1 | using FirstCRUDApplication.Code; 2 | 3 | namespace FirstCRUDApplication.Models 4 | { 5 | public class BootstrapModel 6 | { 7 | public string ID { get; set; } 8 | public string AreaLabeledId { get; set; } 9 | public ModalSize Size { get; set; } 10 | public string Message { get; set; } 11 | public string ModalSizeClass 12 | { 13 | get 14 | { 15 | switch (this.Size) 16 | { 17 | case ModalSize.Small: 18 | return "modal-sm"; 19 | case ModalSize.Large: 20 | return "modal-lg"; 21 | case ModalSize.Medium: 22 | default: 23 | return ""; 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FirstCRUDApplication.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Models/ModalFooter.cs: -------------------------------------------------------------------------------- 1 | namespace FirstCRUDApplication.Models 2 | { 3 | public class ModalFooter 4 | { 5 | public string SubmitButtonText { get; set; } = "Submit"; 6 | public string CancelButtonText { get; set; } = "Cancel"; 7 | public string SubmitButtonID { get; set; } = "btn-submit"; 8 | public string CancelButtonID { get; set; } = "btn-cancel"; 9 | public bool OnlyCancelButton { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Models/ModalHeader.cs: -------------------------------------------------------------------------------- 1 | namespace FirstCRUDApplication.Models 2 | { 3 | public class ModalHeader 4 | { 5 | public string Heading { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace FirstCRUDApplication 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:58114/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "FirstCRUDApplication": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:58115/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Book/_DeleteBook.cshtml: -------------------------------------------------------------------------------- 1 | @model String 2 | @using FirstCRUDApplication.Models 3 | 4 | @using (Html.BeginForm()) 5 | { 6 | @Html.Partial("_ModalHeader", new ModalHeader { Heading = "Delete Book" }) 7 | 8 | 11 | @Html.Partial("_ModalFooter", new ModalFooter { SubmitButtonText="Delete"}) 12 | } 13 | 14 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Shared/_Modal.cshtml: -------------------------------------------------------------------------------- 1 | @model FirstCRUDApplication.Models.BootstrapModel 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Shared/_ModalFooter.cshtml: -------------------------------------------------------------------------------- 1 | @model FirstCRUDApplication.Models.ModalFooter 2 | 3 | 11 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/Shared/_ModalHeader.cshtml: -------------------------------------------------------------------------------- 1 | @model FirstCRUDApplication.Models.ModalHeader 2 | 3 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using FirstCRUDApplication 2 | @using FirstCRUDApplication.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=DESKTOP-RG33QHE;Initial Catalog=ApplicationDb;User ID=sa; Password=admin123" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.dll -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.pdb -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Sandeep\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Sandeep\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bin/Debug/netcoreapp2.0/FirstCRUDApplication.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.7", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 466938a19a223212afee531945000ae187772983 2 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | f374b01f0f5e56dea037f15b85a7c1226098abeb 2 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.dll -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/obj/Debug/netcoreapp2.0/FirstCRUDApplication.pdb -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/FirstCRUDApplication.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "o+AH3wfvrHSsvYFD7OxSDpcPqbKD0ckg9sy9nn1bUd6PdEW/MwvzRxmUIs9IHc9G9nJhwjm00h4lEdoYFvIQjQ==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Release/netcoreapp2.0/FirstCRUDApplication.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 2e782c1696811871fd88ac550e76eef96f96c518 2 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/obj/Release/netcoreapp2.0/FirstCRUDApplication.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | f374b01f0f5e56dea037f15b85a7c1226098abeb 2 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | .top-buffer { 13 | margin-top: 15px; 14 | } 15 | /* Carousel */ 16 | .carousel-caption p { 17 | font-size: 20px; 18 | line-height: 1.4; 19 | } 20 | 21 | /* Make .svg files in the carousel display properly in older browsers */ 22 | .carousel-inner .item img[src$=".svg"] { 23 | width: 100%; 24 | } 25 | 26 | /* QR code generator */ 27 | #qrCode { 28 | margin: 15px; 29 | } 30 | 31 | /* Hide/rearrange for smaller screens */ 32 | @media screen and (max-width: 767px) { 33 | /* Hide captions */ 34 | .carousel-caption { 35 | display: none; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/favicon.ico -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/js/book-index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | function Book() { 3 | var $this = this; 4 | 5 | function initilizeModel() { 6 | $("#modal-action-book").on('loaded.bs.modal', function (e) { 7 | }).on('hidden.bs.modal', function (e) { 8 | $(this).removeData('bs.modal'); 9 | }); 10 | } 11 | $this.init = function () { 12 | initilizeModel(); 13 | } 14 | } 15 | $(function () { 16 | var self = new Book(); 17 | self.init(); 18 | }) 19 | }(jQuery)) 20 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /FirstCRUDApplication/FirstCRUDApplication/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } -------------------------------------------------------------------------------- /GenericRepository/.vs/GenericRepository/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/.vs/GenericRepository/v15/.suo -------------------------------------------------------------------------------- /GenericRepository/.vs/GenericRepository/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/.vs/GenericRepository/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/Address.cs: -------------------------------------------------------------------------------- 1 | namespace GRP.Data 2 | { 3 | public class Address : BaseEntity 4 | { 5 | public long CustomerId { get; set; } 6 | public string AddressLine1 { get; set; } 7 | public string Street { get; set; } 8 | public string City { get; set; } 9 | public string Postcode { get; set; } 10 | public virtual Customer Customer { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/AddressMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | 3 | namespace GRP.Data 4 | { 5 | public class AddressMap 6 | { 7 | public AddressMap(EntityTypeBuilder
entityBuilder) 8 | { 9 | entityBuilder.HasKey(t => t.Id); 10 | entityBuilder.Property(t => t.AddressLine1).IsRequired(); 11 | entityBuilder.Property(t => t.Street).IsRequired(); 12 | entityBuilder.Property(t => t.City).IsRequired(); 13 | entityBuilder.Property(t => t.Postcode).IsRequired(); 14 | entityBuilder.HasOne(e => e.Customer).WithMany(e => e.Addresses).HasForeignKey(e => e.CustomerId); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/ApplicationContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace GRP.Data 4 | { 5 | public class ApplicationContext:DbContext 6 | { 7 | public ApplicationContext(DbContextOptions options) : base(options) 8 | { 9 | } 10 | protected override void OnModelCreating(ModelBuilder modelBuilder) 11 | { 12 | base.OnModelCreating(modelBuilder); 13 | new CustomerMap(modelBuilder.Entity()); 14 | new AddressMap(modelBuilder.Entity
()); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/BaseEntity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GRP.Data 4 | { 5 | public class BaseEntity 6 | { 7 | public Int64 Id { get; set; } 8 | public DateTime AddedDate { get; set; } 9 | public DateTime ModifiedDate { get; set; } 10 | public string IPAddress { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/Customer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace GRP.Data 4 | { 5 | public class Customer: BaseEntity 6 | { 7 | public string FirstName { get; set; } 8 | public string LastName { get; set; } 9 | public string Email { get; set; } 10 | public string MobileNo { get; set; } 11 | public virtual ICollection
Addresses { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/CustomerMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | 3 | namespace GRP.Data 4 | { 5 | public class CustomerMap 6 | { 7 | public CustomerMap(EntityTypeBuilder entityBuilder) 8 | { 9 | entityBuilder.HasKey(t => t.Id); 10 | entityBuilder.Property(t => t.FirstName).IsRequired(); 11 | entityBuilder.Property(t => t.LastName).IsRequired(); 12 | entityBuilder.Property(t => t.Email).IsRequired(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/GRP.Data.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/IRepository.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | 3 | namespace GRP.Data 4 | { 5 | public interface IRepository where T: BaseEntity 6 | { 7 | IQueryable GetAll(); 8 | T Get(long id); 9 | IQueryable GetQueryable(long id); 10 | void Insert(T entity); 11 | void Update(T entity); 12 | void Delete(T entity); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/bin/Debug/netcoreapp2.0/GRP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Data/bin/Debug/netcoreapp2.0/GRP.Data.dll -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/bin/Debug/netcoreapp2.0/GRP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Data/bin/Debug/netcoreapp2.0/GRP.Data.pdb -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("GRP.Data")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("GRP.Data")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("GRP.Data")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 10e549b89bf91cdb9848573560e17c4f6646ddf2 2 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | d837c43ae8a2f87b3cc0faa000a7ed94b7301c09 2 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\VS2017\GenericRepository\GRP.Data\bin\Debug\netcoreapp2.0\GRP.Data.deps.json 2 | E:\VS2017\GenericRepository\GRP.Data\bin\Debug\netcoreapp2.0\GRP.Data.dll 3 | E:\VS2017\GenericRepository\GRP.Data\bin\Debug\netcoreapp2.0\GRP.Data.pdb 4 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.csprojResolveAssemblyReference.cache 5 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.csproj.CoreCompileInputs.cache 6 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.AssemblyInfoInputs.cache 7 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.AssemblyInfo.cs 8 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.dll 9 | E:\VS2017\GenericRepository\GRP.Data\obj\Debug\netcoreapp2.0\GRP.Data.pdb 10 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.dll -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Data/obj/Debug/netcoreapp2.0/GRP.Data.pdb -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/GRP.Data.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "7ObnYC1V9wGfJTNUN1sOEWyLudMq/I/3fRAi9Mmk9tzqNgoY2XquQaR3Ec7jYkO2j6IpFbXZyO8u/L0013vThg==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Data/obj/GRP.Data.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Code/ModelSize.cs: -------------------------------------------------------------------------------- 1 | namespace GRP.Web.Code 2 | { 3 | public enum ModalSize 4 | { 5 | Small, 6 | Large, 7 | Medium 8 | } 9 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using GRP.Web.Models; 8 | 9 | namespace GRP.Web.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/DesignTimeDbContextFactory.cs: -------------------------------------------------------------------------------- 1 | using GRP.Data; 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Design; 4 | using Microsoft.Extensions.Configuration; 5 | using System.IO; 6 | 7 | namespace GRP.Web 8 | { 9 | public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory 10 | { 11 | public ApplicationContext CreateDbContext(string[] args) 12 | { 13 | IConfigurationRoot configuration = new ConfigurationBuilder() 14 | .SetBasePath(Directory.GetCurrentDirectory()) 15 | .AddJsonFile("appsettings.json") 16 | .Build(); 17 | var builder = new DbContextOptionsBuilder(); 18 | var connectionString = configuration.GetConnectionString("DefaultConnection"); 19 | builder.UseSqlServer(connectionString); 20 | return new ApplicationContext(builder.Options); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/GRP.Web.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/GRP.Web.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 600 5 | 600 6 | False 7 | True 8 | False 9 | False 10 | 600 11 | 12 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/BootstrapModel.cs: -------------------------------------------------------------------------------- 1 | using GRP.Web.Code; 2 | 3 | namespace GRP.Web.Models 4 | { 5 | public class BootstrapModel 6 | { 7 | public string ID { get; set; } 8 | public string AreaLabeledId { get; set; } 9 | public ModalSize Size { get; set; } 10 | public string Message { get; set; } 11 | public string ModalSizeClass 12 | { 13 | get 14 | { 15 | switch (this.Size) 16 | { 17 | case ModalSize.Small: 18 | return "modal-sm"; 19 | case ModalSize.Large: 20 | return "modal-lg"; 21 | case ModalSize.Medium: 22 | default: 23 | return ""; 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/CustomerListingViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace GRP.Web.Models 2 | { 3 | public class CustomerListingViewModel 4 | { 5 | public long Id { get; set; } 6 | public string Name { get; set; } 7 | public string Email { get; set; } 8 | public string MobileNo { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/CustomerViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace GRP.Web.Models 4 | { 5 | public class CustomerViewModel 6 | { 7 | public long Id { get; set; } 8 | [Display(Name ="First Name")] 9 | public string FirstName { get; set; } 10 | [Display(Name = "Last Name")] 11 | public string LastName { get; set; } 12 | public string Email { get; set; } 13 | [Display(Name = "Mobile No")] 14 | public string MobileNo { get; set; } 15 | [Display(Name = "Address Line")] 16 | public string AddressLine { get; set; } 17 | public string Street { get; set; } 18 | public string City { get; set; } 19 | public string Postcode { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GRP.Web.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/ModalFooter.cs: -------------------------------------------------------------------------------- 1 | namespace GRP.Web.Models 2 | { 3 | public class ModalFooter 4 | { 5 | public string SubmitButtonText { get; set; } = "Submit"; 6 | public string CancelButtonText { get; set; } = "Cancel"; 7 | public string SubmitButtonID { get; set; } = "btn-submit"; 8 | public string CancelButtonID { get; set; } = "btn-cancel"; 9 | public bool OnlyCancelButton { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Models/ModalHeader.cs: -------------------------------------------------------------------------------- 1 | namespace GRP.Web.Models 2 | { 3 | public class ModalHeader 4 | { 5 | public string Heading { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace GRP.Web 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:55854/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "GRP.Web": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:55855/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Customer/_DeleteCustomer.cshtml: -------------------------------------------------------------------------------- 1 | @model string 2 | @using GRP.Web.Models 3 | 4 |
5 | @Html.Partial("_ModalHeader", new ModalHeader { Heading = "Delete Customer" }) 6 | 7 | 10 | @Html.Partial("_ModalFooter", new ModalFooter { SubmitButtonText = "Delete" }) 11 |
12 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Shared/_Modal.cshtml: -------------------------------------------------------------------------------- 1 | @model GRP.Web.Models.BootstrapModel 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Shared/_ModalFooter.cshtml: -------------------------------------------------------------------------------- 1 | @model GRP.Web.Models.ModalFooter 2 | 3 | 11 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/Shared/_ModalHeader.cshtml: -------------------------------------------------------------------------------- 1 | @model GRP.Web.Models.ModalHeader 2 | 3 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using GRP.Web 2 | @using GRP.Web.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=DESKTOP-RG33QHE;Initial Catalog=ApplicationDb;User ID=sa; Password=admin123" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Data.dll -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Data.pdb -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.dll -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.pdb -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Sandeep\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Sandeep\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bin/Debug/netcoreapp2.0/GRP.Web.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.7", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("GRP.Web")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("GRP.Web")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("GRP.Web")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 61faf3d0e604d958d0393916a099c0f9e7750ce7 2 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csproj.CopyComplete -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | e7656146fef0e8d4f6f2c3fe567eac96a1ef5caa 2 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Web.deps.json 2 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Web.runtimeconfig.json 3 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Web.runtimeconfig.dev.json 4 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Web.dll 5 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Web.pdb 6 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Data.dll 7 | E:\VS2017\GenericRepository\GRP.Web\bin\Debug\netcoreapp2.0\GRP.Data.pdb 8 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.csprojResolveAssemblyReference.cache 9 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.csproj.CoreCompileInputs.cache 10 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.AssemblyInfoInputs.cache 11 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.AssemblyInfo.cs 12 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.dll 13 | E:\VS2017\GenericRepository\GRP.Web\obj\Debug\netcoreapp2.0\GRP.Web.pdb 14 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.dll -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/obj/Debug/netcoreapp2.0/GRP.Web.pdb -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/obj/GRP.Web.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "7cjj08XHch8P0DPnYI89rnKibrekXLch3XGnXWoU2L4VEU65UDkgSKDB+WXRs3l4YPngDMFgq8ZZAgj57Zo8fA==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | 13 | /* Carousel */ 14 | .carousel-caption p { 15 | font-size: 20px; 16 | line-height: 1.4; 17 | } 18 | 19 | /* Make .svg files in the carousel display properly in older browsers */ 20 | .carousel-inner .item img[src$=".svg"] { 21 | width: 100%; 22 | } 23 | 24 | /* QR code generator */ 25 | #qrCode { 26 | margin: 15px; 27 | } 28 | .top-buffer { 29 | margin-top: 15px; 30 | } 31 | /* Hide/rearrange for smaller screens */ 32 | @media screen and (max-width: 767px) { 33 | /* Hide captions */ 34 | .carousel-caption { 35 | display: none; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/favicon.ico -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/js/customer-index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | function Customer() { 3 | var $this = this; 4 | 5 | function initilizeModel() { 6 | $("#modal-action-customer").on('loaded.bs.modal', function (e) { 7 | 8 | }).on('hidden.bs.modal', function (e) { 9 | $(this).removeData('bs.modal'); 10 | }); 11 | } 12 | $this.init = function () { 13 | initilizeModel(); 14 | } 15 | } 16 | $(function () { 17 | var self = new Customer(); 18 | self.init(); 19 | }) 20 | }(jQuery)) 21 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /GenericRepository/GRP.Web/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/.vs/OnionArchitectureApp/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/.vs/OnionArchitectureApp/v15/.suo -------------------------------------------------------------------------------- /OnionArchitectureApp/.vs/OnionArchitectureApp/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/.vs/OnionArchitectureApp/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/ApplicationContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace OAA.Data 4 | { 5 | public class ApplicationContext : DbContext 6 | { 7 | public ApplicationContext(DbContextOptions options) : base(options) 8 | { 9 | } 10 | protected override void OnModelCreating(ModelBuilder modelBuilder) 11 | { 12 | base.OnModelCreating(modelBuilder); 13 | new AuthorMap(modelBuilder.Entity()); 14 | new BookMap(modelBuilder.Entity()); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/Author.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace OAA.Data 4 | { 5 | public class Author:BaseEntity 6 | { 7 | public string FirstName { get; set; } 8 | public string LastName { get; set; } 9 | public string Email { get; set; } 10 | public virtual ICollection Books { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/AuthorMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace OAA.Data 7 | { 8 | public class AuthorMap 9 | { 10 | public AuthorMap(EntityTypeBuilder entityBuilder) 11 | { 12 | entityBuilder.HasKey(t => t.Id); 13 | entityBuilder.Property(t => t.FirstName).IsRequired(); 14 | entityBuilder.Property(t => t.LastName).IsRequired(); 15 | entityBuilder.Property(t => t.Email).IsRequired(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/BaseEntity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace OAA.Data 4 | { 5 | public class BaseEntity 6 | { 7 | public Int64 Id { get; set; } 8 | public DateTime AddedDate { get; set; } 9 | public DateTime ModifiedDate { get; set; } 10 | public string IPAddress { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/Book.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OAA.Data 6 | { 7 | public class Book : BaseEntity 8 | { 9 | public Int64 AuthorId { get; set; } 10 | public string Name { get; set; } 11 | public string Publisher { get; set; } 12 | public string ISBN { get; set; } 13 | public virtual Author Author { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/BookMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace OAA.Data 7 | { 8 | public class BookMap 9 | { 10 | public BookMap(EntityTypeBuilder entityBuilder) 11 | { 12 | entityBuilder.HasKey(t => t.Id); 13 | entityBuilder.Property(t => t.Name).IsRequired(); 14 | entityBuilder.Property(t => t.ISBN).IsRequired(); 15 | entityBuilder.Property(t => t.Publisher).IsRequired(); 16 | entityBuilder.HasOne(e => e.Author).WithMany(e => e.Books).HasForeignKey(e => e.AuthorId); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/OAA.Data.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/bin/Debug/netcoreapp2.0/OAA.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Data/bin/Debug/netcoreapp2.0/OAA.Data.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/bin/Debug/netcoreapp2.0/OAA.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Data/bin/Debug/netcoreapp2.0/OAA.Data.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("OAA.Data")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("OAA.Data")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("OAA.Data")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 37bda73dc0598b9c40d6b203b67d93e93e3a3435 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 106e589959b67a56c687950de25b792574f2017d 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Data/obj/Debug/netcoreapp2.0/OAA.Data.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/OAA.Data.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "GATAwdvqDXVULLv92LeNQZ6FghRkvHfHOvAk3JjEEW2g3kd4rDLaAahntFFasZJDHqI4wnzGYx0whBToBACR0g==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Data/obj/OAA.Data.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/IRepository.cs: -------------------------------------------------------------------------------- 1 | using OAA.Data; 2 | using System.Linq; 3 | 4 | namespace OAA.Repo 5 | { 6 | public interface IRepository where T : BaseEntity 7 | { 8 | IQueryable GetAll(); 9 | T Get(long id); 10 | IQueryable GetQueryable(long id); 11 | IQueryable GetQueryable(); 12 | void Insert(T entity); 13 | void Update(T entity); 14 | void Delete(T entity); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/OAA.Repo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Data.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Data.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Repo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Repo.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Repo.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/bin/Debug/netcoreapp2.0/OAA.Repo.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("OAA.Repo")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("OAA.Repo")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("OAA.Repo")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | f3816042f5d2090e11837406a24ed4f8985f33f8 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.csproj.CopyComplete -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | f9757aeb8ebcc6c921b5d1c16e2882b12e48f0c7 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Repo/obj/Debug/netcoreapp2.0/OAA.Repo.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/OAA.Repo.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "ssC6AMe6AfmYyawdZnC3lHS+BdHAm+UG0WmKi9eck4ZUeeLLLm1pTseIo5QdqXi6xqNpSX7XOjnh6E6fPjSTpw==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Repo/obj/OAA.Repo.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/AuthorService.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using OAA.Data; 3 | using OAA.Repo; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | 7 | namespace OAA.Service 8 | { 9 | public class AuthorService : IAuthorService 10 | { 11 | private IRepository authorRepository; 12 | 13 | public AuthorService(IRepository authorRepository) 14 | { 15 | this.authorRepository = authorRepository; 16 | } 17 | 18 | public List GetAllAuthors() 19 | { 20 | return authorRepository.GetQueryable().Include(c => c.Books).ToList(); 21 | } 22 | public List GetAuthors() 23 | { 24 | return authorRepository.GetAll().ToList(); 25 | } 26 | 27 | public void AddAuthor(Author author) 28 | { 29 | authorRepository.Insert(author); 30 | } 31 | 32 | public Author GetAuthor(long id) 33 | { 34 | return authorRepository.Get(id); 35 | } 36 | 37 | public void UpdateAuthor(Author author) 38 | { 39 | authorRepository.Update(author); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/BookService.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using OAA.Data; 3 | using OAA.Repo; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | 7 | namespace OAA.Service 8 | { 9 | public class BookService : IBookService 10 | { 11 | private IRepository bookRepository; 12 | 13 | public BookService(IRepository bookRepository) 14 | { 15 | this.bookRepository = bookRepository; 16 | } 17 | 18 | public List GetAllBooks() 19 | { 20 | return bookRepository.GetQueryable().Include(b => b.Author).ToList(); 21 | } 22 | 23 | public void AddBook(Book book) 24 | { 25 | bookRepository.Insert(book); 26 | } 27 | 28 | public Book GetBook(long id) 29 | { 30 | return bookRepository.Get(id); 31 | } 32 | 33 | public void UpdateBook(Book book) 34 | { 35 | bookRepository.Update(book); 36 | } 37 | 38 | public void DeleteBook(Book book) 39 | { 40 | bookRepository.Delete(book); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/IAuthorService.cs: -------------------------------------------------------------------------------- 1 | using OAA.Data; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace OAA.Service 7 | { 8 | public interface IAuthorService 9 | { 10 | List GetAllAuthors(); 11 | void AddAuthor(Author author); 12 | Author GetAuthor(long id); 13 | void UpdateAuthor(Author author); 14 | List GetAuthors(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/IBookService.cs: -------------------------------------------------------------------------------- 1 | using OAA.Data; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace OAA.Service 7 | { 8 | public interface IBookService 9 | { 10 | void AddBook(Book book); 11 | List GetAllBooks(); 12 | Book GetBook(long id); 13 | void UpdateBook(Book book); 14 | void DeleteBook(Book book); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/OAA.Service.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Data.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Data.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Repo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Repo.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Repo.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Repo.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Service.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Service.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Service.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/bin/Debug/netcoreapp2.0/OAA.Service.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("OAA.Service")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("OAA.Service")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("OAA.Service")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 9917888b1f9180ac3325d52d573206218642957a 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.csproj.CopyComplete -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | d5d9ed406c59a2984471b38549a2136d0dae79bb 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Service/obj/Debug/netcoreapp2.0/OAA.Service.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/OAA.Service.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "vKFr05gWqBmMiaRzeYhGQuNOPdsUzrWT85spmgWJGB8ROl+8fKeXZ1Ln+HccoS51ZSexFUXMsWe29m8hNR0bKA==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Service/obj/OAA.Service.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Code/ModalSize.cs: -------------------------------------------------------------------------------- 1 | namespace OAA.Web.Code 2 | { 3 | public enum ModalSize 4 | { 5 | Small, 6 | Large, 7 | Medium 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using OAA.Web.Models; 8 | 9 | namespace OAA.Web.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/DesignTimeDbContextFactory.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Design; 3 | using Microsoft.Extensions.Configuration; 4 | using OAA.Data; 5 | using System.IO; 6 | 7 | namespace OAA.Web 8 | { 9 | public class DesignTimeDbContextFactory: IDesignTimeDbContextFactory 10 | { 11 | public ApplicationContext CreateDbContext(string[] args) 12 | { 13 | IConfigurationRoot configuration = new ConfigurationBuilder() 14 | .SetBasePath(Directory.GetCurrentDirectory()) 15 | .AddJsonFile("appsettings.json") 16 | .Build(); 17 | var builder = new DbContextOptionsBuilder(); 18 | var connectionString = configuration.GetConnectionString("DefaultConnection"); 19 | builder.UseSqlServer(connectionString); 20 | return new ApplicationContext(builder.Options); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/AuthorBookViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace OAA.Web.Models 4 | { 5 | public class AuthorBookViewModel 6 | { 7 | public long Id { get; set; } 8 | [Display(Name="First Name")] 9 | public string FirstName { get; set; } 10 | [Display(Name = "Last Name")] 11 | public string LastName { get; set; } 12 | public string Email { get; set; } 13 | [Display(Name = "Book Name")] 14 | public string BookName { get; set; } 15 | public string ISBN { get; set; } 16 | public string Publisher { get; set; } 17 | } 18 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/AuthorListingViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace OAA.Web.Models 2 | { 3 | public class AuthorListingViewModel 4 | { 5 | public long Id { get; set; } 6 | public string Name { get; set; } 7 | public string Email { get; set; } 8 | public int TotalBooks { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/AuthorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace OAA.Web.Models 4 | { 5 | public class AuthorViewModel 6 | { 7 | [Display(Name = "First Name")] 8 | public string FirstName { get; set; } 9 | [Display(Name = "Last Name")] 10 | public string LastName { get; set; } 11 | public string Email { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/BookListingViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace OAA.Web.Models 2 | { 3 | public class BookListingViewModel 4 | { 5 | public long Id { get; set; } 6 | public string BookName { get; set; } 7 | public string AuthorName { get; set; } 8 | public string ISBN { get; set; } 9 | public string Publisher { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/BookViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace OAA.Web.Models 4 | { 5 | public class BookViewModel 6 | { 7 | [Display(Name ="Book Name")] 8 | public string BookName { get; set; } 9 | public string ISBN { get; set; } 10 | public string Publisher { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/BootstrapModel.cs: -------------------------------------------------------------------------------- 1 | using OAA.Web.Code; 2 | 3 | namespace OAA.Web.Models 4 | { 5 | public class BootstrapModel 6 | { 7 | public string ID { get; set; } 8 | public string AreaLabeledId { get; set; } 9 | public ModalSize Size { get; set; } 10 | public string Message { get; set; } 11 | public string ModalSizeClass 12 | { 13 | get 14 | { 15 | switch (this.Size) 16 | { 17 | case ModalSize.Small: 18 | return "modal-sm"; 19 | case ModalSize.Large: 20 | return "modal-lg"; 21 | case ModalSize.Medium: 22 | default: 23 | return ""; 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/EditBookViewModel.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc.Rendering; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | 5 | namespace OAA.Web.Models 6 | { 7 | public class EditBookViewModel 8 | { 9 | [Display(Name="Book Name")] 10 | public string BookName { get; set; } 11 | public string ISBN { get; set; } 12 | public string Publisher { get; set; } 13 | public List Authors { get; set; } = new List(); 14 | [Display(Name = "Author")] 15 | public long AuthorId { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace OAA.Web.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/ModalFooter.cs: -------------------------------------------------------------------------------- 1 | namespace OAA.Web.Models 2 | { 3 | public class ModalFooter 4 | { 5 | public string SubmitButtonText { get; set; } = "Submit"; 6 | public string CancelButtonText { get; set; } = "Cancel"; 7 | public string SubmitButtonID { get; set; } = "btn-submit"; 8 | public string CancelButtonID { get; set; } = "btn-cancel"; 9 | public bool OnlyCancelButton { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Models/ModalHeader.cs: -------------------------------------------------------------------------------- 1 | namespace OAA.Web.Models 2 | { 3 | public class ModalHeader 4 | { 5 | public string Heading { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/OAA.Web.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/OAA.Web.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 600 5 | 6 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace OAA.Web 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:52527/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "OAA.Web": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:52528/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Author/_EditAuthor.cshtml: -------------------------------------------------------------------------------- 1 | @model AuthorViewModel 2 | @using OAA.Web.Models 3 | 4 |
5 | @await Html.PartialAsync("_ModalHeader", new ModalHeader { Heading = "Edit Author" }) 6 | 26 | @await Html.PartialAsync("_ModalFooter", new ModalFooter { }) 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Book/_DeleteBook.cshtml: -------------------------------------------------------------------------------- 1 | @model string 2 | @using OAA.Web.Models 3 | 4 |
5 | @Html.Partial("_ModalHeader", new ModalHeader { Heading = "Delete Book" }) 6 | 7 | 10 | @Html.Partial("_ModalFooter", new ModalFooter { SubmitButtonText = "Delete" }) 11 |
12 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Shared/_Modal.cshtml: -------------------------------------------------------------------------------- 1 | @model OAA.Web.Models.BootstrapModel 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Shared/_ModalFooter.cshtml: -------------------------------------------------------------------------------- 1 | @model OAA.Web.Models.ModalFooter 2 | 3 | 11 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/Shared/_ModalHeader.cshtml: -------------------------------------------------------------------------------- 1 | @model OAA.Web.Models.ModalHeader 2 | 3 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using OAA.Web 2 | @using OAA.Web.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=DESKTOP-RG33QHE;Initial Catalog=ApplicationDb;User ID=sa; Password=admin123" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Data.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Data.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Repo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Repo.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Repo.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Repo.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Service.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Service.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Service.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Service.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Sandeep\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Sandeep\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bin/Debug/netcoreapp2.0/OAA.Web.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.7", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("OAA.Web")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("OAA.Web")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("OAA.Web")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | a091e1e42d5add76088897206b3ccdc19dd1b483 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.csproj.CopyComplete -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 1085017e406fdee9b5b00d7f7deb3feed78812c1 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.dll -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/obj/Debug/netcoreapp2.0/OAA.Web.pdb -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/obj/OAA.Web.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "F/N51JmgWsJs9fFonaiV7gO6IZCrfwfo6zt4cM+m7ae/cBgsLPQ3Yqz3oeJ/B+VgDYFile/cQKKMId7PISAJrw==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | .top-buffer { 13 | margin-top: 15px; 14 | } 15 | /* Carousel */ 16 | .carousel-caption p { 17 | font-size: 20px; 18 | line-height: 1.4; 19 | } 20 | 21 | /* Make .svg files in the carousel display properly in older browsers */ 22 | .carousel-inner .item img[src$=".svg"] { 23 | width: 100%; 24 | } 25 | 26 | /* QR code generator */ 27 | #qrCode { 28 | margin: 15px; 29 | } 30 | 31 | /* Hide/rearrange for smaller screens */ 32 | @media screen and (max-width: 767px) { 33 | /* Hide captions */ 34 | .carousel-caption { 35 | display: none; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/favicon.ico -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/js/author-index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | function Author() { 3 | var $this = this; 4 | 5 | function initilizeModel() { 6 | $("#modal-action-author").on('loaded.bs.modal', function (e) { 7 | 8 | }).on('hidden.bs.modal', function (e) { 9 | $(this).removeData('bs.modal'); 10 | }); 11 | } 12 | $this.init = function () { 13 | initilizeModel(); 14 | } 15 | } 16 | $(function () { 17 | var self = new Author(); 18 | self.init(); 19 | }) 20 | }(jQuery)) 21 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/js/book-index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | function Book() { 3 | var $this = this; 4 | 5 | function initilizeModel() { 6 | $("#modal-action-book").on('loaded.bs.modal', function (e) { 7 | 8 | }).on('hidden.bs.modal', function (e) { 9 | $(this).removeData('bs.modal'); 10 | }); 11 | } 12 | $this.init = function () { 13 | initilizeModel(); 14 | } 15 | } 16 | $(function () { 17 | var self = new Book(); 18 | self.init(); 19 | }) 20 | }(jQuery)) 21 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /OnionArchitectureApp/OAA.Web/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ASP.NET Core MVC Example 2 | This repository holds sample application which developed using ASP.NET Core MVC 3 | # First Application 4 | Its name is EmployeeApplication. It is developed using ASP.NET Core 2.0. 5 | # CRUD Operations Using Entity Framework Core 6 | Its solution folder name is FirstCRUDApplication. 7 | # Repository Pattern In ASP.NET Core MVC And Entity Framework Core 8 | Its solution folder name is RepositoryPattern. 9 | # Generic Repository Pattern In ASP.NET Core MVC And Entity Framework Core 10 | Its solution folder name is GenericRepository. 11 | -------------------------------------------------------------------------------- /RepositoryPattern/.vs/RepositoryPattern/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/.vs/RepositoryPattern/v15/.suo -------------------------------------------------------------------------------- /RepositoryPattern/.vs/RepositoryPattern/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/.vs/RepositoryPattern/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/ApplicationContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace RP.Data 4 | { 5 | public class ApplicationContext:DbContext 6 | { 7 | public ApplicationContext(DbContextOptions options) : base(options) 8 | { 9 | } 10 | protected override void OnModelCreating(ModelBuilder modelBuilder) 11 | { 12 | base.OnModelCreating(modelBuilder); 13 | new EmployeeMap(modelBuilder.Entity()); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/BaseEntity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace RP.Data 4 | { 5 | public class BaseEntity 6 | { 7 | public Int64 Id { get; set; } 8 | public DateTime AddedDate { get; set; } 9 | public DateTime ModifiedDate { get; set; } 10 | public string IPAddress { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace RP.Data 2 | { 3 | public class Employee : BaseEntity 4 | { 5 | public string FirstName { get; set; } 6 | public string LastName { get; set; } 7 | public decimal Salary { get; set; } 8 | public string City { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/EmployeeMap.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 2 | 3 | namespace RP.Data 4 | { 5 | public class EmployeeMap 6 | { 7 | public EmployeeMap(EntityTypeBuilder entityBuilder) 8 | { 9 | entityBuilder.HasKey(t => t.Id); 10 | entityBuilder.Property(t => t.FirstName).IsRequired(); 11 | entityBuilder.Property(t => t.LastName).IsRequired(); 12 | entityBuilder.Property(t => t.Salary).IsRequired(); 13 | entityBuilder.Property(t => t.City).IsRequired(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/IEmployeeRepository.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace RP.Data 4 | { 5 | public interface IEmployeeRepository 6 | { 7 | void SaveEmployee(Employee employee); 8 | IEnumerable GetAllEmployees(); 9 | Employee GetEmployee(long id); 10 | void DeleteEmployee(long id); 11 | void UpdateEmployee(Employee employee); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/RP.Data.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/bin/Debug/netcoreapp2.0/RP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Data/bin/Debug/netcoreapp2.0/RP.Data.dll -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/bin/Debug/netcoreapp2.0/RP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Data/bin/Debug/netcoreapp2.0/RP.Data.pdb -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("RP.Data")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("RP.Data")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("RP.Data")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | e703fb60094fe6af6ff3241b628cfd32f903b31a 2 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | d5912e4da5a0020c86aeb3f72519c95621158645 2 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\VS2017\RepositoryPattern\RP.Data\bin\Debug\netcoreapp2.0\RP.Data.deps.json 2 | E:\VS2017\RepositoryPattern\RP.Data\bin\Debug\netcoreapp2.0\RP.Data.dll 3 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.csproj.CoreCompileInputs.cache 4 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.AssemblyInfoInputs.cache 5 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.AssemblyInfo.cs 6 | E:\VS2017\RepositoryPattern\RP.Data\bin\Debug\netcoreapp2.0\RP.Data.pdb 7 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.dll 8 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.pdb 9 | E:\VS2017\RepositoryPattern\RP.Data\obj\Debug\netcoreapp2.0\RP.Data.csprojResolveAssemblyReference.cache 10 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.dll -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Data/obj/Debug/netcoreapp2.0/RP.Data.pdb -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/RP.Data.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "7DYdvxDT9D/0viW9IX31bgxApHoByCNxEXATAnbbYPzEZGFiYMYxTlKIWumUrIYFCmCsIYJu0rCQ5oAgVxpu9g==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Data/obj/RP.Data.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Code/ModelSize.cs: -------------------------------------------------------------------------------- 1 | namespace RP.Web.Code 2 | { 3 | public enum ModalSize 4 | { 5 | Small, 6 | Large, 7 | Medium 8 | } 9 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using RP.Web.Models; 8 | 9 | namespace RP.Web.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/DesignTimeDbContextFactory.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Design; 3 | using Microsoft.Extensions.Configuration; 4 | using RP.Data; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.IO; 8 | using System.Linq; 9 | using System.Threading.Tasks; 10 | 11 | namespace RP.Web 12 | { 13 | public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory 14 | { 15 | public ApplicationContext CreateDbContext(string[] args) 16 | { 17 | IConfigurationRoot configuration = new ConfigurationBuilder() 18 | .SetBasePath(Directory.GetCurrentDirectory()) 19 | .AddJsonFile("appsettings.json") 20 | .Build(); 21 | var builder = new DbContextOptionsBuilder(); 22 | var connectionString = configuration.GetConnectionString("DefaultConnection"); 23 | builder.UseSqlServer(connectionString); 24 | return new ApplicationContext(builder.Options); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Models/BootstrapModel.cs: -------------------------------------------------------------------------------- 1 | using RP.Web.Code; 2 | 3 | namespace RP.Web.Models 4 | { 5 | public class BootstrapModel 6 | { 7 | public string ID { get; set; } 8 | public string AreaLabeledId { get; set; } 9 | public ModalSize Size { get; set; } 10 | public string Message { get; set; } 11 | public string ModalSizeClass 12 | { 13 | get 14 | { 15 | switch (this.Size) 16 | { 17 | case ModalSize.Small: 18 | return "modal-sm"; 19 | case ModalSize.Large: 20 | return "modal-lg"; 21 | case ModalSize.Medium: 22 | default: 23 | return ""; 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Models/EmployeeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace RP.Web.Models 4 | { 5 | public class EmployeeViewModel 6 | { 7 | public long Id { get; set; } 8 | [Display(Name = "First Name")] 9 | public string FirstName { get; set; } 10 | [Display(Name = "Last Name")] 11 | public string LastName { get; set; } 12 | public string Name { get; set; } 13 | public string City { get; set; } 14 | public decimal Salary { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace RP.Web.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Models/ModalFooter.cs: -------------------------------------------------------------------------------- 1 | namespace RP.Web.Models 2 | { 3 | public class ModalFooter 4 | { 5 | public string SubmitButtonText { get; set; } = "Submit"; 6 | public string CancelButtonText { get; set; } = "Cancel"; 7 | public string SubmitButtonID { get; set; } = "btn-submit"; 8 | public string CancelButtonID { get; set; } = "btn-cancel"; 9 | public bool OnlyCancelButton { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Models/ModalHeader.cs: -------------------------------------------------------------------------------- 1 | namespace RP.Web.Models 2 | { 3 | public class ModalHeader 4 | { 5 | public string Heading { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace RP.Web 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:49367/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "RP.Web": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:49368/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/RP.Web.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Employee/_DeleteEmployee.cshtml: -------------------------------------------------------------------------------- 1 | @model EmployeeViewModel 2 | @using RP.Web.Models 3 | 4 | @using (Html.BeginForm()) 5 | { 6 | @Html.Partial("_ModalHeader", new ModalHeader { Heading = "Delete Employee" }) 7 | 8 | 11 | @Html.Partial("_ModalFooter", new ModalFooter { SubmitButtonText = "Delete" }) 12 | } 13 | 14 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Shared/_Modal.cshtml: -------------------------------------------------------------------------------- 1 | @model RP.Web.Models.BootstrapModel 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Shared/_ModalFooter.cshtml: -------------------------------------------------------------------------------- 1 | @model RP.Web.Models.ModalFooter 2 | 3 | 11 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/Shared/_ModalHeader.cshtml: -------------------------------------------------------------------------------- 1 | @model RP.Web.Models.ModalHeader 2 | 3 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using RP.Web 2 | @using RP.Web.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=DESKTOP-RG33QHE;Initial Catalog=ApplicationDb;User ID=sa; Password=admin123" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Data.dll -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Data.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Data.pdb -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.dll -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.pdb -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Sandeep\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Sandeep\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bin/Debug/netcoreapp2.0/RP.Web.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.7", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("RP.Web")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("RP.Web")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("RP.Web")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 4e0eb813ef48185189d2badc826edeb87531650d 2 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csproj.CopyComplete -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | b441c6dbcb80e267e103ca41fa5bc27ff4036699 2 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Web.deps.json 2 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Web.runtimeconfig.json 3 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Web.runtimeconfig.dev.json 4 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Web.dll 5 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Web.pdb 6 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.csprojResolveAssemblyReference.cache 7 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.csproj.CoreCompileInputs.cache 8 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.AssemblyInfoInputs.cache 9 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.AssemblyInfo.cs 10 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.dll 11 | E:\VS2017\RepositoryPattern\RP.Web\obj\Debug\netcoreapp2.0\RP.Web.pdb 12 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Data.dll 13 | E:\VS2017\RepositoryPattern\RP.Web\bin\Debug\netcoreapp2.0\RP.Data.pdb 14 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.dll -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/obj/Debug/netcoreapp2.0/RP.Web.pdb -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/obj/RP.Web.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "0NlL+8Wn74VkTzeN6mLJhpByVARCT2klsnmzqfqJIy4M2tOl53C7WIWWYfkA16y3gNt2jKLyU/Fx91zcXARXtQ==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | 13 | /* Carousel */ 14 | .carousel-caption p { 15 | font-size: 20px; 16 | line-height: 1.4; 17 | } 18 | 19 | /* Make .svg files in the carousel display properly in older browsers */ 20 | .carousel-inner .item img[src$=".svg"] { 21 | width: 100%; 22 | } 23 | 24 | /* QR code generator */ 25 | #qrCode { 26 | margin: 15px; 27 | } 28 | .top-buffer { 29 | margin-top: 15px; 30 | } 31 | /* Hide/rearrange for smaller screens */ 32 | @media screen and (max-width: 767px) { 33 | /* Hide captions */ 34 | .carousel-caption { 35 | display: none; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/favicon.ico -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/js/employee-index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | function Employee() { 3 | var $this = this; 4 | 5 | function initilizeModel() { 6 | $("#modal-action-employee").on('loaded.bs.modal', function (e) { 7 | }).on('hidden.bs.modal', function (e) { 8 | $(this).removeData('bs.modal'); 9 | }); 10 | } 11 | $this.init = function () { 12 | initilizeModel(); 13 | } 14 | } 15 | $(function () { 16 | var self = new Employee(); 17 | self.init(); 18 | }) 19 | }(jQuery)) 20 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssshekhawat/ASP.NET-Core-MVC-Example/2209cf2127e03aca85f49947e7ccb791c604dd2a/RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /RepositoryPattern/RP.Web/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } --------------------------------------------------------------------------------