├── angular10 ├── src │ ├── assets │ │ └── .gitkeep │ ├── app │ │ ├── app.component.css │ │ ├── department │ │ │ ├── department.component.css │ │ │ ├── show-dep │ │ │ │ ├── show-dep.component.css │ │ │ │ ├── show-dep.component.spec.ts │ │ │ │ ├── show-dep.component.ts │ │ │ │ └── show-dep.component.html │ │ │ ├── add-edit-dep │ │ │ │ ├── add-edit-dep.component.css │ │ │ │ ├── add-edit-dep.component.html │ │ │ │ ├── add-edit-dep.component.spec.ts │ │ │ │ └── add-edit-dep.component.ts │ │ │ ├── department.component.html │ │ │ ├── department.component.ts │ │ │ └── department.component.spec.ts │ │ ├── employee │ │ │ ├── employee.component.css │ │ │ ├── show-emp │ │ │ │ ├── show-emp.component.css │ │ │ │ ├── show-emp.component.spec.ts │ │ │ │ ├── show-emp.component.ts │ │ │ │ └── show-emp.component.html │ │ │ ├── add-edit-emp │ │ │ │ ├── add-edit-emp.component.css │ │ │ │ ├── add-edit-emp.component.spec.ts │ │ │ │ ├── add-edit-emp.component.html │ │ │ │ └── add-edit-emp.component.ts │ │ │ ├── employee.component.html │ │ │ ├── employee.component.ts │ │ │ └── employee.component.spec.ts │ │ ├── app.component.ts │ │ ├── shared.service.spec.ts │ │ ├── app-routing.module.ts │ │ ├── app.component.html │ │ ├── app.component.spec.ts │ │ ├── app.module.ts │ │ └── shared.service.ts │ ├── styles.css │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── favicon.ico │ ├── main.ts │ ├── test.ts │ ├── index.html │ └── polyfills.ts ├── .editorconfig ├── e2e │ ├── src │ │ ├── app.po.ts │ │ └── app.e2e-spec.ts │ ├── tsconfig.json │ └── protractor.conf.js ├── tsconfig.app.json ├── tsconfig.spec.json ├── tsconfig.base.json ├── tsconfig.json ├── .gitignore ├── .browserslistrc ├── README.md ├── karma.conf.js ├── package.json ├── tslint.json └── angular.json ├── README.md ├── WebAPI ├── WebAPI │ ├── obj │ │ ├── Debug │ │ │ └── netcoreapp3.1 │ │ │ │ ├── WebAPI.csproj.CopyComplete │ │ │ │ ├── WebAPI.MvcApplicationPartsAssemblyInfo.cache │ │ │ │ ├── staticwebassets │ │ │ │ ├── WebAPI.StaticWebAssets.Manifest.cache │ │ │ │ └── WebAPI.StaticWebAssets.xml │ │ │ │ ├── WebAPI.genruntimeconfig.cache │ │ │ │ ├── WebAPI.AssemblyInfoInputs.cache │ │ │ │ ├── WebAPI.RazorTargetAssemblyInfo.cache │ │ │ │ ├── WebAPI.csproj.CoreCompileInputs.cache │ │ │ │ ├── WebAPI.dll │ │ │ │ ├── WebAPI.exe │ │ │ │ ├── WebAPI.pdb │ │ │ │ ├── WebAPI.assets.cache │ │ │ │ ├── WebAPI.csprojAssemblyReference.cache │ │ │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ │ │ ├── WebAPI.AssemblyInfo.cs │ │ │ │ └── WebAPI.csproj.FileListAbsolute.txt │ │ ├── WebAPI.csproj.nuget.g.targets │ │ ├── WebAPI.csproj.nuget.g.props │ │ ├── project.nuget.cache │ │ ├── WebAPI.csproj.nuget.dgspec.json │ │ └── project.assets.json │ ├── Photos │ │ ├── patrick.PNG │ │ └── anonymous.PNG │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp3.1 │ │ │ ├── WebAPI.dll │ │ │ ├── WebAPI.exe │ │ │ ├── WebAPI.pdb │ │ │ ├── Newtonsoft.Json.dll │ │ │ ├── Newtonsoft.Json.Bson.dll │ │ │ ├── System.Data.SqlClient.dll │ │ │ ├── runtimes │ │ │ ├── win-x64 │ │ │ │ └── native │ │ │ │ │ └── sni.dll │ │ │ ├── win-x86 │ │ │ │ └── native │ │ │ │ │ └── sni.dll │ │ │ ├── win-arm64 │ │ │ │ └── native │ │ │ │ │ └── sni.dll │ │ │ ├── unix │ │ │ │ └── lib │ │ │ │ │ └── netcoreapp2.1 │ │ │ │ │ └── System.Data.SqlClient.dll │ │ │ └── win │ │ │ │ └── lib │ │ │ │ └── netcoreapp2.1 │ │ │ │ └── System.Data.SqlClient.dll │ │ │ ├── Microsoft.AspNetCore.JsonPatch.dll │ │ │ ├── Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll │ │ │ ├── WebAPI.runtimeconfig.dev.json │ │ │ ├── appsettings.Development.json │ │ │ ├── WebAPI.runtimeconfig.json │ │ │ ├── appsettings.json │ │ │ └── Properties │ │ │ └── launchSettings.json │ ├── appsettings.Development.json │ ├── Models │ │ ├── Department.cs │ │ └── Employee.cs │ ├── WeatherForecast.cs │ ├── appsettings.json │ ├── WebAPI.csproj │ ├── WebAPI.csproj.user │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Controllers │ │ ├── WeatherForecastController.cs │ │ ├── DepartmentController.cs │ │ └── EmployeeController.cs │ └── Startup.cs ├── .vs │ └── WebAPI │ │ ├── v16 │ │ └── .suo │ │ ├── DesignTimeBuild │ │ └── .dtbcache.v2 │ │ └── config │ │ └── applicationhost.config └── WebAPI.sln └── .gitattributes /angular10/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular10dotNETCoreAPI 2 | 3 | -------------------------------------------------------------------------------- /angular10/src/app/department/department.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/employee/employee.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/employee/show-emp/show-emp.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/department/show-dep/show-dep.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.CopyComplete: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/department/add-edit-dep/add-edit-dep.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/app/employee/add-edit-emp/add-edit-emp.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /angular10/src/app/department/department.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /angular10/src/app/employee/employee.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/staticwebassets/WebAPI.StaticWebAssets.Manifest.cache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 86c8e15dd33445635927cfaf398408205fd11473 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/staticwebassets/WebAPI.StaticWebAssets.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular10/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 8071d147e32d0630849d28d7010f1c7d9f5cfc82 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.RazorTargetAssemblyInfo.cache: -------------------------------------------------------------------------------- 1 | 2ba159081b2463c81a3b13e7540958b05f8628b8 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 11edaeb93e5ce9ac8c1f84c4dd7e9ea4308ab7a7 2 | -------------------------------------------------------------------------------- /angular10/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/angular10/src/favicon.ico -------------------------------------------------------------------------------- /WebAPI/.vs/WebAPI/v16/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/.vs/WebAPI/v16/.suo -------------------------------------------------------------------------------- /WebAPI/WebAPI/Photos/patrick.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/Photos/patrick.PNG -------------------------------------------------------------------------------- /WebAPI/WebAPI/Photos/anonymous.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/Photos/anonymous.PNG -------------------------------------------------------------------------------- /WebAPI/.vs/WebAPI/DesignTimeBuild/.dtbcache.v2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/.vs/WebAPI/DesignTimeBuild/.dtbcache.v2 -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.exe -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.exe -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.assets.cache -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.Bson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.Bson.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.JsonPatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.JsonPatch.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArtOfEngineer/Angular10dotNETCoreAPI/HEAD/WebAPI/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Vinay6666\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Vinay6666\\.nuget\\packages" 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /angular10/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'angular10'; 10 | } 11 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.1", 4 | "framework": { 5 | "name": "Microsoft.AspNetCore.App", 6 | "version": "3.1.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/WebAPI.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/Department.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace WebAPI.Models 7 | { 8 | public class Department 9 | { 10 | public int DepartmentId { get; set; } 11 | 12 | public string DepartmentName { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angular10/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.ts] 12 | quote_type = single 13 | 14 | [*.md] 15 | max_line_length = off 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /angular10/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo(): Promise { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText(): Promise { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPI 4 | { 5 | public class WeatherForecast 6 | { 7 | public DateTime Date { get; set; } 8 | 9 | public int TemperatureC { get; set; } 10 | 11 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 12 | 13 | public string Summary { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /angular10/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "../tsconfig.base.json", 4 | "compilerOptions": { 5 | "outDir": "../out-tsc/e2e", 6 | "module": "commonjs", 7 | "target": "es2018", 8 | "types": [ 9 | "jasmine", 10 | "jasminewd2", 11 | "node" 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angular10/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.base.json", 4 | "compilerOptions": { 5 | "outDir": "./out-tsc/app", 6 | "types": [] 7 | }, 8 | "files": [ 9 | "src/main.ts", 10 | "src/polyfills.ts" 11 | ], 12 | "include": [ 13 | "src/**/*.d.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "EmployeeAppCon": "Data Source=.;Initial Catalog=EmployeeDB; Integrated Security=true" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /angular10/src/app/employee/employee.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-employee', 5 | templateUrl: './employee.component.html', 6 | styleUrls: ['./employee.component.css'] 7 | }) 8 | export class EmployeeComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit(): void { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "EmployeeAppCon": "Data Source=.;Initial Catalog=EmployeeDB; Integrated Security=true" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /angular10/src/app/department/department.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-department', 5 | templateUrl: './department.component.html', 6 | styleUrls: ['./department.component.css'] 7 | }) 8 | export class DepartmentComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit(): void { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular10/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular10/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.base.json", 4 | "compilerOptions": { 5 | "outDir": "./out-tsc/spec", 6 | "types": [ 7 | "jasmine" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular10/src/app/shared.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { SharedService } from './shared.service'; 4 | 5 | describe('SharedService', () => { 6 | let service: SharedService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(SharedService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/WebAPI.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/Employee.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace WebAPI.Models 8 | { 9 | public class Employee 10 | { 11 | public int EmployeeId { get; set; } 12 | public string EmployeeName { get; set; } 13 | public string Department { get; set; } 14 | public string DateOfJoining { get; set; } 15 | public string PhotoFileName { get; set; } 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /angular10/tsconfig.base.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "compileOnSave": false, 4 | "compilerOptions": { 5 | "baseUrl": "./", 6 | "outDir": "./dist/out-tsc", 7 | "sourceMap": true, 8 | "declaration": false, 9 | "downlevelIteration": true, 10 | "experimentalDecorators": true, 11 | "moduleResolution": "node", 12 | "importHelpers": true, 13 | "target": "es2015", 14 | "module": "es2020", 15 | "lib": [ 16 | "es2018", 17 | "dom" 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /angular10/tsconfig.json: -------------------------------------------------------------------------------- 1 | /* 2 | This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. 3 | It is not intended to be used to perform a compilation. 4 | 5 | To learn more about this file see: https://angular.io/config/solution-tsconfig. 6 | */ 7 | { 8 | "files": [], 9 | "references": [ 10 | { 11 | "path": "./tsconfig.app.json" 12 | }, 13 | { 14 | "path": "./tsconfig.spec.json" 15 | }, 16 | { 17 | "path": "./e2e/tsconfig.json" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /angular10/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import {EmployeeComponent} from './employee/employee.component'; 5 | import {DepartmentComponent} from './department/department.component'; 6 | 7 | 8 | const routes: Routes = [ 9 | {path:'employee',component:EmployeeComponent}, 10 | {path:'department',component:DepartmentComponent} 11 | 12 | ]; 13 | 14 | @NgModule({ 15 | imports: [RouterModule.forRoot(routes)], 16 | exports: [RouterModule] 17 | }) 18 | export class AppRoutingModule { } 19 | -------------------------------------------------------------------------------- /angular10/src/app/department/add-edit-dep/add-edit-dep.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 7 |
8 |
9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/WebAPI.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ProjectDebugger 5 | 6 | 7 | WebAPI 8 | ApiControllerEmptyScaffolder 9 | root/Controller 10 | 11 | -------------------------------------------------------------------------------- /angular10/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * For easier debugging in development mode, you can import the following file 11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 12 | * 13 | * This import should be commented out in production mode because it will have a negative impact 14 | * on performance if an error is thrown. 15 | */ 16 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 17 | -------------------------------------------------------------------------------- /angular10/e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | import { browser, logging } from 'protractor'; 3 | 4 | describe('workspace-project App', () => { 5 | let page: AppPage; 6 | 7 | beforeEach(() => { 8 | page = new AppPage(); 9 | }); 10 | 11 | it('should display welcome message', () => { 12 | page.navigateTo(); 13 | expect(page.getTitleText()).toEqual('angular10 app is running!'); 14 | }); 15 | 16 | afterEach(async () => { 17 | // Assert that there are no errors emitted from the browser 18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER); 19 | expect(logs).not.toContain(jasmine.objectContaining({ 20 | level: logging.Level.SEVERE, 21 | } as logging.Entry)); 22 | }); 23 | }); 24 | -------------------------------------------------------------------------------- /angular10/src/app/employee/employee.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { EmployeeComponent } from './employee.component'; 4 | 5 | describe('EmployeeComponent', () => { 6 | let component: EmployeeComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ EmployeeComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(EmployeeComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/src/app/department/show-dep/show-dep.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { ShowDepComponent } from './show-dep.component'; 4 | 5 | describe('ShowDepComponent', () => { 6 | let component: ShowDepComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ ShowDepComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(ShowDepComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/src/app/employee/show-emp/show-emp.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { ShowEmpComponent } from './show-emp.component'; 4 | 5 | describe('ShowEmpComponent', () => { 6 | let component: ShowEmpComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ ShowEmpComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(ShowEmpComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |

Angular 10, Web API, SQL Server App Demo

4 |
Employee Management Portal
5 | 6 | 19 | 20 | 21 | 22 |
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace WebAPI 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /angular10/src/app/department/department.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { DepartmentComponent } from './department.component'; 4 | 5 | describe('DepartmentComponent', () => { 6 | let component: DepartmentComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ DepartmentComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(DepartmentComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/src/app/department/add-edit-dep/add-edit-dep.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { AddEditDepComponent } from './add-edit-dep.component'; 4 | 5 | describe('AddEditDepComponent', () => { 6 | let component: AddEditDepComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ AddEditDepComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(AddEditDepComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/src/app/employee/add-edit-emp/add-edit-emp.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { AddEditEmpComponent } from './add-edit-emp.component'; 4 | 5 | describe('AddEditEmpComponent', () => { 6 | let component: AddEditEmpComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ AddEditEmpComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(AddEditEmpComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /angular10/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | # Only exists if Bazel was run 8 | /bazel-out 9 | 10 | # dependencies 11 | /node_modules 12 | 13 | # profiling files 14 | chrome-profiler-events*.json 15 | speed-measure-plugin*.json 16 | 17 | # IDEs and editors 18 | /.idea 19 | .project 20 | .classpath 21 | .c9/ 22 | *.launch 23 | .settings/ 24 | *.sublime-workspace 25 | 26 | # IDE - VSCode 27 | .vscode/* 28 | !.vscode/settings.json 29 | !.vscode/tasks.json 30 | !.vscode/launch.json 31 | !.vscode/extensions.json 32 | .history/* 33 | 34 | # misc 35 | /.sass-cache 36 | /connect.lock 37 | /coverage 38 | /libpeerconnection.log 39 | npm-debug.log 40 | yarn-error.log 41 | testem.log 42 | /typings 43 | 44 | # System Files 45 | .DS_Store 46 | Thumbs.db 47 | -------------------------------------------------------------------------------- /angular10/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: { 11 | context(path: string, deep?: boolean, filter?: RegExp): { 12 | keys(): string[]; 13 | (id: string): T; 14 | }; 15 | }; 16 | 17 | // First, initialize the Angular testing environment. 18 | getTestBed().initTestEnvironment( 19 | BrowserDynamicTestingModule, 20 | platformBrowserDynamicTesting() 21 | ); 22 | // Then we find all the tests. 23 | const context = require.context('./', true, /\.spec\.ts$/); 24 | // And load the modules. 25 | context.keys().map(context); 26 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:50306", 8 | "sslPort": 0 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "weatherforecast", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "WebAPI": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "weatherforecast", 24 | "applicationUrl": "http://localhost:53535", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /angular10/.browserslistrc: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # For the full list of supported browsers by the Angular framework, please see: 6 | # https://angular.io/guide/browser-support 7 | 8 | # You can see what browsers were selected by your queries by running: 9 | # npx browserslist 10 | 11 | last 1 Chrome version 12 | last 1 Firefox version 13 | last 2 Edge major versions 14 | last 2 Safari major versions 15 | last 2 iOS major versions 16 | Firefox ESR 17 | not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line. 18 | not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. 19 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Debug/netcoreapp3.1/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:50306", 8 | "sslPort": 0 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "weatherforecast", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "WebAPI": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "weatherforecast", 24 | "applicationUrl": "http://localhost:53535", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /angular10/e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // @ts-check 2 | // Protractor configuration file, see link for more information 3 | // https://github.com/angular/protractor/blob/master/lib/config.ts 4 | 5 | const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); 6 | 7 | /** 8 | * @type { import("protractor").Config } 9 | */ 10 | exports.config = { 11 | allScriptsTimeout: 11000, 12 | specs: [ 13 | './src/**/*.e2e-spec.ts' 14 | ], 15 | capabilities: { 16 | browserName: 'chrome' 17 | }, 18 | directConnect: true, 19 | baseUrl: 'http://localhost:4200/', 20 | framework: 'jasmine', 21 | jasmineNodeOpts: { 22 | showColors: true, 23 | defaultTimeoutInterval: 30000, 24 | print: function() {} 25 | }, 26 | onPrepare() { 27 | require('ts-node').register({ 28 | project: require('path').join(__dirname, './tsconfig.json') 29 | }); 30 | jasmine.getEnv().addReporter(new SpecReporter({ 31 | spec: { 32 | displayStacktrace: StacktraceOption.PRETTY 33 | } 34 | })); 35 | } 36 | }; -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.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("WebAPI")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("WebAPI")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("WebAPI")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /angular10/README.md: -------------------------------------------------------------------------------- 1 | # Angular10 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.2. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /angular10/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, './coverage/angular10'), 20 | reports: ['html', 'lcovonly', 'text-summary'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false, 30 | restartOnFileChange: true 31 | }); 32 | }; 33 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/WebAPI.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\Vinay6666\.nuget\packages\ 9 | PackageReference 10 | 5.6.0 11 | 12 | 13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 14 | 15 | -------------------------------------------------------------------------------- /angular10/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Angular10 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /angular10/src/app/department/add-edit-dep/add-edit-dep.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit,Input } from '@angular/core'; 2 | import {SharedService} from 'src/app/shared.service'; 3 | 4 | @Component({ 5 | selector: 'app-add-edit-dep', 6 | templateUrl: './add-edit-dep.component.html', 7 | styleUrls: ['./add-edit-dep.component.css'] 8 | }) 9 | export class AddEditDepComponent implements OnInit { 10 | 11 | constructor(private service:SharedService) { } 12 | 13 | @Input() dep:any; 14 | DepartmentId:string; 15 | DepartmentName:string; 16 | 17 | ngOnInit(): void { 18 | this.DepartmentId=this.dep.DepartmentId; 19 | this.DepartmentName=this.dep.DepartmentName; 20 | } 21 | 22 | addDepartment(){ 23 | var val = {DepartmentId:this.DepartmentId, 24 | DepartmentName:this.DepartmentName}; 25 | this.service.addDepartment(val).subscribe(res=>{ 26 | alert(res.toString()); 27 | }); 28 | } 29 | 30 | updateDepartment(){ 31 | var val = {DepartmentId:this.DepartmentId, 32 | DepartmentName:this.DepartmentName}; 33 | this.service.updateDepartment(val).subscribe(res=>{ 34 | alert(res.toString()); 35 | }); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /WebAPI/WebAPI.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30114.105 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebAPI", "WebAPI\WebAPI.csproj", "{DF7E65DF-81E8-4FDA-8B97-A21A55D3F99A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {DF7E65DF-81E8-4FDA-8B97-A21A55D3F99A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {DF7E65DF-81E8-4FDA-8B97-A21A55D3F99A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {DF7E65DF-81E8-4FDA-8B97-A21A55D3F99A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {DF7E65DF-81E8-4FDA-8B97-A21A55D3F99A}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {109D694C-DB8A-4CDE-8906-F007044E3DED} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /angular10/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async } from '@angular/core/testing'; 2 | import { RouterTestingModule } from '@angular/router/testing'; 3 | import { AppComponent } from './app.component'; 4 | 5 | describe('AppComponent', () => { 6 | beforeEach(async(() => { 7 | TestBed.configureTestingModule({ 8 | imports: [ 9 | RouterTestingModule 10 | ], 11 | declarations: [ 12 | AppComponent 13 | ], 14 | }).compileComponents(); 15 | })); 16 | 17 | it('should create the app', () => { 18 | const fixture = TestBed.createComponent(AppComponent); 19 | const app = fixture.componentInstance; 20 | expect(app).toBeTruthy(); 21 | }); 22 | 23 | it(`should have as title 'angular10'`, () => { 24 | const fixture = TestBed.createComponent(AppComponent); 25 | const app = fixture.componentInstance; 26 | expect(app.title).toEqual('angular10'); 27 | }); 28 | 29 | it('should render title', () => { 30 | const fixture = TestBed.createComponent(AppComponent); 31 | fixture.detectChanges(); 32 | const compiled = fixture.nativeElement; 33 | expect(compiled.querySelector('.content span').textContent).toContain('angular10 app is running!'); 34 | }); 35 | }); 36 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/WeatherForecastController.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 Microsoft.Extensions.Logging; 7 | 8 | namespace WebAPI.Controllers 9 | { 10 | [ApiController] 11 | [Route("[controller]")] 12 | public class WeatherForecastController : ControllerBase 13 | { 14 | private static readonly string[] Summaries = new[] 15 | { 16 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 17 | }; 18 | 19 | private readonly ILogger _logger; 20 | 21 | public WeatherForecastController(ILogger logger) 22 | { 23 | _logger = logger; 24 | } 25 | 26 | [HttpGet] 27 | public IEnumerable Get() 28 | { 29 | var rng = new Random(); 30 | return Enumerable.Range(1, 5).Select(index => new WeatherForecast 31 | { 32 | Date = DateTime.Now.AddDays(index), 33 | TemperatureC = rng.Next(-20, 55), 34 | Summary = Summaries[rng.Next(Summaries.Length)] 35 | }) 36 | .ToArray(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /angular10/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | 4 | import { AppRoutingModule } from './app-routing.module'; 5 | import { AppComponent } from './app.component'; 6 | import { DepartmentComponent } from './department/department.component'; 7 | import { ShowDepComponent } from './department/show-dep/show-dep.component'; 8 | import { AddEditDepComponent } from './department/add-edit-dep/add-edit-dep.component'; 9 | import { EmployeeComponent } from './employee/employee.component'; 10 | import { ShowEmpComponent } from './employee/show-emp/show-emp.component'; 11 | import { AddEditEmpComponent } from './employee/add-edit-emp/add-edit-emp.component'; 12 | import{SharedService} from './shared.service'; 13 | 14 | import {HttpClientModule} from '@angular/common/http'; 15 | import {FormsModule,ReactiveFormsModule} from '@angular/forms'; 16 | 17 | @NgModule({ 18 | declarations: [ 19 | AppComponent, 20 | DepartmentComponent, 21 | ShowDepComponent, 22 | AddEditDepComponent, 23 | EmployeeComponent, 24 | ShowEmpComponent, 25 | AddEditEmpComponent 26 | ], 27 | imports: [ 28 | BrowserModule, 29 | AppRoutingModule, 30 | HttpClientModule, 31 | FormsModule, 32 | ReactiveFormsModule 33 | ], 34 | providers: [SharedService], 35 | bootstrap: [AppComponent] 36 | }) 37 | export class AppModule { } 38 | -------------------------------------------------------------------------------- /angular10/src/app/employee/add-edit-emp/add-edit-emp.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 6 |
7 | 9 |
10 | 11 | 12 |
13 | 19 |
20 | 21 | 22 |
23 | 24 |
25 | 26 |
27 |
28 | 29 | 30 |
31 |
32 | 33 | 34 | 37 | 38 | -------------------------------------------------------------------------------- /angular10/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular10", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "ng": "ng", 6 | "start": "ng serve", 7 | "build": "ng build", 8 | "test": "ng test", 9 | "lint": "ng lint", 10 | "e2e": "ng e2e" 11 | }, 12 | "private": true, 13 | "dependencies": { 14 | "@angular/animations": "~10.0.3", 15 | "@angular/common": "~10.0.3", 16 | "@angular/compiler": "~10.0.3", 17 | "@angular/core": "~10.0.3", 18 | "@angular/forms": "~10.0.3", 19 | "@angular/platform-browser": "~10.0.3", 20 | "@angular/platform-browser-dynamic": "~10.0.3", 21 | "@angular/router": "~10.0.3", 22 | "rxjs": "~6.5.5", 23 | "tslib": "^2.0.0", 24 | "zone.js": "~0.10.3" 25 | }, 26 | "devDependencies": { 27 | "@angular-devkit/build-angular": "~0.1000.2", 28 | "@angular/cli": "~10.0.2", 29 | "@angular/compiler-cli": "~10.0.3", 30 | "@types/node": "^12.11.1", 31 | "@types/jasmine": "~3.5.0", 32 | "@types/jasminewd2": "~2.0.3", 33 | "codelyzer": "^6.0.0", 34 | "jasmine-core": "~3.5.0", 35 | "jasmine-spec-reporter": "~5.0.0", 36 | "karma": "~5.0.0", 37 | "karma-chrome-launcher": "~3.1.0", 38 | "karma-coverage-istanbul-reporter": "~3.0.2", 39 | "karma-jasmine": "~3.3.0", 40 | "karma-jasmine-html-reporter": "^1.5.0", 41 | "protractor": "~7.0.0", 42 | "ts-node": "~8.3.0", 43 | "tslint": "~6.1.0", 44 | "typescript": "~3.9.5" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /angular10/src/app/shared.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import {HttpClient} from '@angular/common/http'; 3 | import {Observable} from 'rxjs'; 4 | 5 | 6 | @Injectable({ 7 | providedIn: 'root' 8 | }) 9 | export class SharedService { 10 | readonly APIUrl="http://localhost:53535/api"; 11 | readonly PhotoUrl = "http://localhost:53535/Photos/"; 12 | 13 | constructor(private http:HttpClient) { } 14 | 15 | getDepList():Observable{ 16 | return this.http.get(this.APIUrl+'/department'); 17 | } 18 | 19 | addDepartment(val:any){ 20 | return this.http.post(this.APIUrl+'/Department',val); 21 | } 22 | 23 | updateDepartment(val:any){ 24 | return this.http.put(this.APIUrl+'/Department',val); 25 | } 26 | 27 | deleteDepartment(val:any){ 28 | return this.http.delete(this.APIUrl+'/Department/'+val); 29 | } 30 | 31 | 32 | getEmpList():Observable{ 33 | return this.http.get(this.APIUrl+'/Employee'); 34 | } 35 | 36 | addEmployee(val:any){ 37 | return this.http.post(this.APIUrl+'/Employee',val); 38 | } 39 | 40 | updateEmployee(val:any){ 41 | return this.http.put(this.APIUrl+'/Employee',val); 42 | } 43 | 44 | deleteEmployee(val:any){ 45 | return this.http.delete(this.APIUrl+'/Employee/'+val); 46 | } 47 | 48 | 49 | UploadPhoto(val:any){ 50 | return this.http.post(this.APIUrl+'/Employee/SaveFile',val); 51 | } 52 | 53 | getAllDepartmentNames():Observable{ 54 | return this.http.get(this.APIUrl+'/Employee/GetAllDepartmentNames'); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /angular10/src/app/employee/show-emp/show-emp.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import {SharedService} from 'src/app/shared.service'; 3 | 4 | @Component({ 5 | selector: 'app-show-emp', 6 | templateUrl: './show-emp.component.html', 7 | styleUrls: ['./show-emp.component.css'] 8 | }) 9 | export class ShowEmpComponent implements OnInit { 10 | 11 | constructor(private service:SharedService) { } 12 | 13 | EmployeeList:any=[]; 14 | 15 | ModalTitle:string; 16 | ActivateAddEditEmpComp:boolean=false; 17 | emp:any; 18 | 19 | ngOnInit(): void { 20 | this.refreshEmpList(); 21 | } 22 | 23 | addClick(){ 24 | this.emp={ 25 | EmployeeId:0, 26 | EmployeeName:"", 27 | Department:"", 28 | DateOfJoining:"", 29 | PhotoFileName:"anonymous.png" 30 | } 31 | this.ModalTitle="Add Employee"; 32 | this.ActivateAddEditEmpComp=true; 33 | 34 | } 35 | 36 | editClick(item){ 37 | console.log(item); 38 | this.emp=item; 39 | this.ModalTitle="Edit Employee"; 40 | this.ActivateAddEditEmpComp=true; 41 | } 42 | 43 | deleteClick(item){ 44 | if(confirm('Are you sure??')){ 45 | this.service.deleteEmployee(item.EmployeeId).subscribe(data=>{ 46 | alert(data.toString()); 47 | this.refreshEmpList(); 48 | }) 49 | } 50 | } 51 | 52 | closeClick(){ 53 | this.ActivateAddEditEmpComp=false; 54 | this.refreshEmpList(); 55 | } 56 | 57 | 58 | refreshEmpList(){ 59 | this.service.getEmpList().subscribe(data=>{ 60 | this.EmployeeList=data; 61 | }); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /angular10/src/app/employee/add-edit-emp/add-edit-emp.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit,Input } from '@angular/core'; 2 | import {SharedService} from 'src/app/shared.service'; 3 | 4 | @Component({ 5 | selector: 'app-add-edit-emp', 6 | templateUrl: './add-edit-emp.component.html', 7 | styleUrls: ['./add-edit-emp.component.css'] 8 | }) 9 | export class AddEditEmpComponent implements OnInit { 10 | 11 | constructor(private service:SharedService) { } 12 | 13 | @Input() emp:any; 14 | EmployeeId:string; 15 | EmployeeName:string; 16 | Department:string; 17 | DateOfJoining:string; 18 | PhotoFileName:string; 19 | PhotoFilePath:string; 20 | 21 | DepartmentsList:any=[]; 22 | 23 | ngOnInit(): void { 24 | this.loadDepartmentList(); 25 | } 26 | 27 | loadDepartmentList(){ 28 | this.service.getAllDepartmentNames().subscribe((data:any)=>{ 29 | this.DepartmentsList=data; 30 | 31 | this.EmployeeId=this.emp.EmployeeId; 32 | this.EmployeeName=this.emp.EmployeeName; 33 | this.Department=this.emp.Department; 34 | this.DateOfJoining=this.emp.DateOfJoining; 35 | this.PhotoFileName=this.emp.PhotoFileName; 36 | this.PhotoFilePath=this.service.PhotoUrl+this.PhotoFileName; 37 | }); 38 | } 39 | 40 | addEmployee(){ 41 | var val = {EmployeeId:this.EmployeeId, 42 | EmployeeName:this.EmployeeName, 43 | Department:this.Department, 44 | DateOfJoining:this.DateOfJoining, 45 | PhotoFileName:this.PhotoFileName}; 46 | 47 | this.service.addEmployee(val).subscribe(res=>{ 48 | alert(res.toString()); 49 | }); 50 | } 51 | 52 | updateEmployee(){ 53 | var val = {EmployeeId:this.EmployeeId, 54 | EmployeeName:this.EmployeeName, 55 | Department:this.Department, 56 | DateOfJoining:this.DateOfJoining, 57 | PhotoFileName:this.PhotoFileName}; 58 | 59 | this.service.updateEmployee(val).subscribe(res=>{ 60 | alert(res.toString()); 61 | }); 62 | } 63 | 64 | 65 | uploadPhoto(event){ 66 | var file=event.target.files[0]; 67 | const formData:FormData=new FormData(); 68 | formData.append('uploadedFile',file,file.name); 69 | 70 | this.service.UploadPhoto(formData).subscribe((data:any)=>{ 71 | this.PhotoFileName=data.toString(); 72 | this.PhotoFilePath=this.service.PhotoUrl+this.PhotoFileName; 73 | }) 74 | } 75 | 76 | } 77 | 78 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "MfqQWQ3dE48ROwiHoRXSz3TWv/aI3VJjk5dFVcW4O6Fz5ulSkPnndehmgJ+/dXrhfygNffGaXUlgH3I/oCGuRg==", 4 | "success": true, 5 | "projectFilePath": "E:\\coreAPI\\WebAPI\\WebAPI\\WebAPI.csproj", 6 | "expectedPackageFiles": [ 7 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.aspnetcore.jsonpatch\\3.1.9\\microsoft.aspnetcore.jsonpatch.3.1.9.nupkg.sha512", 8 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.aspnetcore.mvc.newtonsoftjson\\3.1.9\\microsoft.aspnetcore.mvc.newtonsoftjson.3.1.9.nupkg.sha512", 9 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.csharp\\4.7.0\\microsoft.csharp.4.7.0.nupkg.sha512", 10 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512", 11 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\microsoft.win32.registry.4.7.0.nupkg.sha512", 12 | "C:\\Users\\Vinay6666\\.nuget\\packages\\newtonsoft.json\\12.0.2\\newtonsoft.json.12.0.2.nupkg.sha512", 13 | "C:\\Users\\Vinay6666\\.nuget\\packages\\newtonsoft.json.bson\\1.0.2\\newtonsoft.json.bson.1.0.2.nupkg.sha512", 14 | "C:\\Users\\Vinay6666\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.7.0\\runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512", 15 | "C:\\Users\\Vinay6666\\.nuget\\packages\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 16 | "C:\\Users\\Vinay6666\\.nuget\\packages\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 17 | "C:\\Users\\Vinay6666\\.nuget\\packages\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 18 | "C:\\Users\\Vinay6666\\.nuget\\packages\\system.data.sqlclient\\4.8.2\\system.data.sqlclient.4.8.2.nupkg.sha512", 19 | "C:\\Users\\Vinay6666\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\system.security.accesscontrol.4.7.0.nupkg.sha512", 20 | "C:\\Users\\Vinay6666\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\system.security.principal.windows.4.7.0.nupkg.sha512", 21 | "C:\\Users\\Vinay6666\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\3.1.2\\microsoft.aspnetcore.app.ref.3.1.2.nupkg.sha512" 22 | ], 23 | "logs": [] 24 | } -------------------------------------------------------------------------------- /angular10/src/app/department/show-dep/show-dep.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import {SharedService} from 'src/app/shared.service'; 3 | 4 | @Component({ 5 | selector: 'app-show-dep', 6 | templateUrl: './show-dep.component.html', 7 | styleUrls: ['./show-dep.component.css'] 8 | }) 9 | export class ShowDepComponent implements OnInit { 10 | 11 | constructor(private service:SharedService) { } 12 | 13 | DepartmentList:any=[]; 14 | 15 | ModalTitle:string; 16 | ActivateAddEditDepComp:boolean=false; 17 | dep:any; 18 | 19 | DepartmentIdFilter:string=""; 20 | DepartmentNameFilter:string=""; 21 | DepartmentListWithoutFilter:any=[]; 22 | 23 | ngOnInit(): void { 24 | this.refreshDepList(); 25 | } 26 | 27 | addClick(){ 28 | this.dep={ 29 | DepartmentId:0, 30 | DepartmentName:"" 31 | } 32 | this.ModalTitle="Add Department"; 33 | this.ActivateAddEditDepComp=true; 34 | 35 | } 36 | 37 | editClick(item){ 38 | this.dep=item; 39 | this.ModalTitle="Edit Department"; 40 | this.ActivateAddEditDepComp=true; 41 | } 42 | 43 | deleteClick(item){ 44 | if(confirm('Are you sure??')){ 45 | this.service.deleteDepartment(item.DepartmentId).subscribe(data=>{ 46 | alert(data.toString()); 47 | this.refreshDepList(); 48 | }) 49 | } 50 | } 51 | 52 | closeClick(){ 53 | this.ActivateAddEditDepComp=false; 54 | this.refreshDepList(); 55 | } 56 | 57 | 58 | refreshDepList(){ 59 | this.service.getDepList().subscribe(data=>{ 60 | this.DepartmentList=data; 61 | this.DepartmentListWithoutFilter=data; 62 | }); 63 | } 64 | 65 | FilterFn(){ 66 | var DepartmentIdFilter = this.DepartmentIdFilter; 67 | var DepartmentNameFilter = this.DepartmentNameFilter; 68 | 69 | this.DepartmentList = this.DepartmentListWithoutFilter.filter(function (el){ 70 | return el.DepartmentId.toString().toLowerCase().includes( 71 | DepartmentIdFilter.toString().trim().toLowerCase() 72 | )&& 73 | el.DepartmentName.toString().toLowerCase().includes( 74 | DepartmentNameFilter.toString().trim().toLowerCase() 75 | ) 76 | }); 77 | } 78 | 79 | sortResult(prop,asc){ 80 | this.DepartmentList = this.DepartmentListWithoutFilter.sort(function(a,b){ 81 | if(asc){ 82 | return (a[prop]>b[prop])?1 : ((a[prop]a[prop])?1 : ((b[prop] 32 | { 33 | c.AddPolicy("AllowOrigin", options => options.AllowAnyOrigin().AllowAnyMethod() 34 | .AllowAnyHeader()); 35 | }); 36 | 37 | //JSON Serializer 38 | services.AddControllersWithViews() 39 | .AddNewtonsoftJson(options => 40 | options.SerializerSettings.ReferenceLoopHandling = Newtonsoft 41 | .Json.ReferenceLoopHandling.Ignore) 42 | .AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver 43 | = new DefaultContractResolver()); 44 | 45 | services.AddControllers(); 46 | } 47 | 48 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 49 | public void Configure(IApplicationBuilder app, IWebHostEnvironment env) 50 | { 51 | app.UseCors(options => options.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader()); 52 | 53 | if (env.IsDevelopment()) 54 | { 55 | app.UseDeveloperExceptionPage(); 56 | } 57 | 58 | app.UseRouting(); 59 | 60 | app.UseAuthorization(); 61 | 62 | app.UseEndpoints(endpoints => 63 | { 64 | endpoints.MapControllers(); 65 | }); 66 | 67 | 68 | app.UseStaticFiles(new StaticFileOptions 69 | { 70 | FileProvider = new PhysicalFileProvider( 71 | Path.Combine(Directory.GetCurrentDirectory(),"Photos")), 72 | RequestPath="/Photos" 73 | }); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /angular10/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/guide/browser-support 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 22 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 23 | 24 | /** 25 | * Web Animations `@angular/platform-browser/animations` 26 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. 27 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). 28 | */ 29 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 30 | 31 | /** 32 | * By default, zone.js will patch all possible macroTask and DomEvents 33 | * user can disable parts of macroTask/DomEvents patch by setting following flags 34 | * because those flags need to be set before `zone.js` being loaded, and webpack 35 | * will put import in the top of bundle, so user need to create a separate file 36 | * in this directory (for example: zone-flags.ts), and put the following flags 37 | * into that file, and then add the following code before importing zone.js. 38 | * import './zone-flags'; 39 | * 40 | * The flags allowed in zone-flags.ts are listed here. 41 | * 42 | * The following flags will work for all browsers. 43 | * 44 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 45 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 46 | * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 47 | * 48 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 49 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 50 | * 51 | * (window as any).__Zone_enable_cross_context_check = true; 52 | * 53 | */ 54 | 55 | /*************************************************************************************************** 56 | * Zone JS is required by default for Angular itself. 57 | */ 58 | import 'zone.js/dist/zone'; // Included with Angular CLI. 59 | 60 | 61 | /*************************************************************************************************** 62 | * APPLICATION IMPORTS 63 | */ 64 | -------------------------------------------------------------------------------- /angular10/src/app/employee/show-emp/show-emp.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 68 | 69 | 70 |
EmployeeIdEmployeeNameDepartmentDateOfJoiningOptions
{{dataItem.EmployeeId}}{{dataItem.EmployeeName}}{{dataItem.Department}}{{dataItem.DateOfJoining}} 50 | 60 | 67 |
71 | -------------------------------------------------------------------------------- /angular10/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint:recommended", 3 | "rules": { 4 | "align": { 5 | "options": [ 6 | "parameters", 7 | "statements" 8 | ] 9 | }, 10 | "array-type": false, 11 | "arrow-return-shorthand": true, 12 | "curly": true, 13 | "deprecation": { 14 | "severity": "warning" 15 | }, 16 | "component-class-suffix": true, 17 | "contextual-lifecycle": true, 18 | "directive-class-suffix": true, 19 | "directive-selector": [ 20 | true, 21 | "attribute", 22 | "app", 23 | "camelCase" 24 | ], 25 | "component-selector": [ 26 | true, 27 | "element", 28 | "app", 29 | "kebab-case" 30 | ], 31 | "eofline": true, 32 | "import-blacklist": [ 33 | true, 34 | "rxjs/Rx" 35 | ], 36 | "import-spacing": true, 37 | "indent": { 38 | "options": [ 39 | "spaces" 40 | ] 41 | }, 42 | "max-classes-per-file": false, 43 | "max-line-length": [ 44 | true, 45 | 140 46 | ], 47 | "member-ordering": [ 48 | true, 49 | { 50 | "order": [ 51 | "static-field", 52 | "instance-field", 53 | "static-method", 54 | "instance-method" 55 | ] 56 | } 57 | ], 58 | "no-console": [ 59 | true, 60 | "debug", 61 | "info", 62 | "time", 63 | "timeEnd", 64 | "trace" 65 | ], 66 | "no-empty": false, 67 | "no-inferrable-types": [ 68 | true, 69 | "ignore-params" 70 | ], 71 | "no-non-null-assertion": true, 72 | "no-redundant-jsdoc": true, 73 | "no-switch-case-fall-through": true, 74 | "no-var-requires": false, 75 | "object-literal-key-quotes": [ 76 | true, 77 | "as-needed" 78 | ], 79 | "quotemark": [ 80 | true, 81 | "single" 82 | ], 83 | "semicolon": { 84 | "options": [ 85 | "always" 86 | ] 87 | }, 88 | "space-before-function-paren": { 89 | "options": { 90 | "anonymous": "never", 91 | "asyncArrow": "always", 92 | "constructor": "never", 93 | "method": "never", 94 | "named": "never" 95 | } 96 | }, 97 | "typedef": [ 98 | true, 99 | "call-signature" 100 | ], 101 | "typedef-whitespace": { 102 | "options": [ 103 | { 104 | "call-signature": "nospace", 105 | "index-signature": "nospace", 106 | "parameter": "nospace", 107 | "property-declaration": "nospace", 108 | "variable-declaration": "nospace" 109 | }, 110 | { 111 | "call-signature": "onespace", 112 | "index-signature": "onespace", 113 | "parameter": "onespace", 114 | "property-declaration": "onespace", 115 | "variable-declaration": "onespace" 116 | } 117 | ] 118 | }, 119 | "variable-name": { 120 | "options": [ 121 | "ban-keywords", 122 | "check-format", 123 | "allow-pascal-case" 124 | ] 125 | }, 126 | "whitespace": { 127 | "options": [ 128 | "check-branch", 129 | "check-decl", 130 | "check-operator", 131 | "check-separator", 132 | "check-type", 133 | "check-typecast" 134 | ] 135 | }, 136 | "no-conflicting-lifecycle": true, 137 | "no-host-metadata-property": true, 138 | "no-input-rename": true, 139 | "no-inputs-metadata-property": true, 140 | "no-output-native": true, 141 | "no-output-on-prefix": true, 142 | "no-output-rename": true, 143 | "no-outputs-metadata-property": true, 144 | "template-banana-in-box": true, 145 | "template-no-negated-async": true, 146 | "use-lifecycle-interface": true, 147 | "use-pipe-transform-interface": true 148 | }, 149 | "rulesDirectory": [ 150 | "codelyzer" 151 | ] 152 | } -------------------------------------------------------------------------------- /angular10/angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "projects": { 6 | "angular10": { 7 | "projectType": "application", 8 | "schematics": {}, 9 | "root": "", 10 | "sourceRoot": "src", 11 | "prefix": "app", 12 | "architect": { 13 | "build": { 14 | "builder": "@angular-devkit/build-angular:browser", 15 | "options": { 16 | "outputPath": "dist/angular10", 17 | "index": "src/index.html", 18 | "main": "src/main.ts", 19 | "polyfills": "src/polyfills.ts", 20 | "tsConfig": "tsconfig.app.json", 21 | "aot": true, 22 | "assets": [ 23 | "src/favicon.ico", 24 | "src/assets" 25 | ], 26 | "styles": [ 27 | "src/styles.css" 28 | ], 29 | "scripts": [] 30 | }, 31 | "configurations": { 32 | "production": { 33 | "fileReplacements": [ 34 | { 35 | "replace": "src/environments/environment.ts", 36 | "with": "src/environments/environment.prod.ts" 37 | } 38 | ], 39 | "optimization": true, 40 | "outputHashing": "all", 41 | "sourceMap": false, 42 | "extractCss": true, 43 | "namedChunks": false, 44 | "extractLicenses": true, 45 | "vendorChunk": false, 46 | "buildOptimizer": true, 47 | "budgets": [ 48 | { 49 | "type": "initial", 50 | "maximumWarning": "2mb", 51 | "maximumError": "5mb" 52 | }, 53 | { 54 | "type": "anyComponentStyle", 55 | "maximumWarning": "6kb", 56 | "maximumError": "10kb" 57 | } 58 | ] 59 | } 60 | } 61 | }, 62 | "serve": { 63 | "builder": "@angular-devkit/build-angular:dev-server", 64 | "options": { 65 | "browserTarget": "angular10:build" 66 | }, 67 | "configurations": { 68 | "production": { 69 | "browserTarget": "angular10:build:production" 70 | } 71 | } 72 | }, 73 | "extract-i18n": { 74 | "builder": "@angular-devkit/build-angular:extract-i18n", 75 | "options": { 76 | "browserTarget": "angular10:build" 77 | } 78 | }, 79 | "test": { 80 | "builder": "@angular-devkit/build-angular:karma", 81 | "options": { 82 | "main": "src/test.ts", 83 | "polyfills": "src/polyfills.ts", 84 | "tsConfig": "tsconfig.spec.json", 85 | "karmaConfig": "karma.conf.js", 86 | "assets": [ 87 | "src/favicon.ico", 88 | "src/assets" 89 | ], 90 | "styles": [ 91 | "src/styles.css" 92 | ], 93 | "scripts": [] 94 | } 95 | }, 96 | "lint": { 97 | "builder": "@angular-devkit/build-angular:tslint", 98 | "options": { 99 | "tsConfig": [ 100 | "tsconfig.app.json", 101 | "tsconfig.spec.json", 102 | "e2e/tsconfig.json" 103 | ], 104 | "exclude": [ 105 | "**/node_modules/**" 106 | ] 107 | } 108 | }, 109 | "e2e": { 110 | "builder": "@angular-devkit/build-angular:protractor", 111 | "options": { 112 | "protractorConfig": "e2e/protractor.conf.js", 113 | "devServerTarget": "angular10:serve" 114 | }, 115 | "configurations": { 116 | "production": { 117 | "devServerTarget": "angular10:serve:production" 118 | } 119 | } 120 | } 121 | } 122 | }}, 123 | "defaultProject": "angular10" 124 | } 125 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/DepartmentController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Http; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.Extensions.Configuration; 8 | using System.Data.SqlClient; 9 | using System.Data; 10 | using WebAPI.Models; 11 | 12 | namespace WebAPI.Controllers 13 | { 14 | [Route("api/[controller]")] 15 | [ApiController] 16 | public class DepartmentController : ControllerBase 17 | { 18 | private readonly IConfiguration _configuration; 19 | 20 | public DepartmentController(IConfiguration configuration) 21 | { 22 | _configuration = configuration; 23 | } 24 | 25 | [HttpGet] 26 | public JsonResult Get() 27 | { 28 | string query = @" 29 | select DepartmentId, DepartmentName from dbo.Department"; 30 | DataTable table = new DataTable(); 31 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 32 | SqlDataReader myReader; 33 | using(SqlConnection myCon=new SqlConnection(sqlDataSource)) 34 | { 35 | myCon.Open(); 36 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 37 | { 38 | myReader = myCommand.ExecuteReader(); 39 | table.Load(myReader); ; 40 | 41 | myReader.Close(); 42 | myCon.Close(); 43 | } 44 | } 45 | 46 | return new JsonResult(table); 47 | } 48 | 49 | 50 | [HttpPost] 51 | public JsonResult Post(Department dep) 52 | { 53 | string query = @" 54 | insert into dbo.Department values 55 | ('"+dep.DepartmentName+@"') 56 | "; 57 | DataTable table = new DataTable(); 58 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 59 | SqlDataReader myReader; 60 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 61 | { 62 | myCon.Open(); 63 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 64 | { 65 | myReader = myCommand.ExecuteReader(); 66 | table.Load(myReader); ; 67 | 68 | myReader.Close(); 69 | myCon.Close(); 70 | } 71 | } 72 | 73 | return new JsonResult("Added Successfully"); 74 | } 75 | 76 | 77 | [HttpPut] 78 | public JsonResult Put(Department dep) 79 | { 80 | string query = @" 81 | update dbo.Department set 82 | DepartmentName = '"+dep.DepartmentName+@"' 83 | where DepartmentId = "+dep.DepartmentId + @" 84 | "; 85 | DataTable table = new DataTable(); 86 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 87 | SqlDataReader myReader; 88 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 89 | { 90 | myCon.Open(); 91 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 92 | { 93 | myReader = myCommand.ExecuteReader(); 94 | table.Load(myReader); ; 95 | 96 | myReader.Close(); 97 | myCon.Close(); 98 | } 99 | } 100 | 101 | return new JsonResult("Updated Successfully"); 102 | } 103 | 104 | 105 | [HttpDelete("{id}")] 106 | public JsonResult Delete(int id) 107 | { 108 | string query = @" 109 | delete from dbo.Department 110 | where DepartmentId = " + id + @" 111 | "; 112 | DataTable table = new DataTable(); 113 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 114 | SqlDataReader myReader; 115 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 116 | { 117 | myCon.Open(); 118 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 119 | { 120 | myReader = myCommand.ExecuteReader(); 121 | table.Load(myReader); ; 122 | 123 | myReader.Close(); 124 | myCon.Close(); 125 | } 126 | } 127 | 128 | return new JsonResult("Deleted Successfully"); 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /angular10/src/app/department/show-dep/show-dep.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 57 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 103 | 104 | 105 |
37 |
38 | 40 | 41 | 47 | 53 | 54 |
55 | 56 | DepartmentId
58 |
59 | 61 | 62 | 68 | 74 | 75 |
76 | Department Name
Options
{{dataItem.DepartmentId}}{{dataItem.DepartmentName}} 85 | 95 | 102 |
106 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/EmployeeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Http; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.Extensions.Configuration; 8 | using System.Data.SqlClient; 9 | using System.Data; 10 | using WebAPI.Models; 11 | using System.IO; 12 | using Microsoft.AspNetCore.Hosting; 13 | 14 | namespace WebAPI.Controllers 15 | { 16 | [Route("api/[controller]")] 17 | [ApiController] 18 | public class EmployeeController : ControllerBase 19 | { 20 | private readonly IConfiguration _configuration; 21 | private readonly IWebHostEnvironment _env; 22 | 23 | public EmployeeController(IConfiguration configuration, IWebHostEnvironment env) 24 | { 25 | _configuration = configuration; 26 | _env = env; 27 | } 28 | 29 | [HttpGet] 30 | public JsonResult Get() 31 | { 32 | string query = @" 33 | select EmployeeId, EmployeeName, Department, 34 | convert(varchar(10),DateOfJoining,120) as DateOfJoining 35 | ,PhotoFileName 36 | from dbo.Employee 37 | "; 38 | DataTable table = new DataTable(); 39 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 40 | SqlDataReader myReader; 41 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 42 | { 43 | myCon.Open(); 44 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 45 | { 46 | myReader = myCommand.ExecuteReader(); 47 | table.Load(myReader); ; 48 | 49 | myReader.Close(); 50 | myCon.Close(); 51 | } 52 | } 53 | 54 | return new JsonResult(table); 55 | } 56 | 57 | 58 | [HttpPost] 59 | public JsonResult Post(Employee emp) 60 | { 61 | string query = @" 62 | insert into dbo.Employee 63 | (EmployeeName,Department,DateOfJoining,PhotoFileName) 64 | values 65 | ( 66 | '" + emp.EmployeeName + @"' 67 | ,'" + emp.Department + @"' 68 | ,'" + emp.DateOfJoining + @"' 69 | ,'" + emp.PhotoFileName + @"' 70 | ) 71 | "; 72 | DataTable table = new DataTable(); 73 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 74 | SqlDataReader myReader; 75 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 76 | { 77 | myCon.Open(); 78 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 79 | { 80 | myReader = myCommand.ExecuteReader(); 81 | table.Load(myReader); ; 82 | 83 | myReader.Close(); 84 | myCon.Close(); 85 | } 86 | } 87 | 88 | return new JsonResult("Added Successfully"); 89 | } 90 | 91 | 92 | [HttpPut] 93 | public JsonResult Put(Employee emp) 94 | { 95 | string query = @" 96 | update dbo.Employee set 97 | EmployeeName = '" + emp.EmployeeName + @"' 98 | ,Department = '" + emp.Department + @"' 99 | ,DateOfJoining = '" + emp.DateOfJoining + @"' 100 | where EmployeeId = " + emp.EmployeeId + @" 101 | "; 102 | DataTable table = new DataTable(); 103 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 104 | SqlDataReader myReader; 105 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 106 | { 107 | myCon.Open(); 108 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 109 | { 110 | myReader = myCommand.ExecuteReader(); 111 | table.Load(myReader); ; 112 | 113 | myReader.Close(); 114 | myCon.Close(); 115 | } 116 | } 117 | 118 | return new JsonResult("Updated Successfully"); 119 | } 120 | 121 | 122 | [HttpDelete("{id}")] 123 | public JsonResult Delete(int id) 124 | { 125 | string query = @" 126 | delete from dbo.Employee 127 | where EmployeeId = " + id + @" 128 | "; 129 | DataTable table = new DataTable(); 130 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 131 | SqlDataReader myReader; 132 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 133 | { 134 | myCon.Open(); 135 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 136 | { 137 | myReader = myCommand.ExecuteReader(); 138 | table.Load(myReader); ; 139 | 140 | myReader.Close(); 141 | myCon.Close(); 142 | } 143 | } 144 | 145 | return new JsonResult("Deleted Successfully"); 146 | } 147 | 148 | 149 | [Route("SaveFile")] 150 | [HttpPost] 151 | public JsonResult SaveFile() 152 | { 153 | try 154 | { 155 | var httpRequest = Request.Form; 156 | var postedFile = httpRequest.Files[0]; 157 | string filename = postedFile.FileName; 158 | var physicalPath = _env.ContentRootPath + "/Photos/" + filename; 159 | 160 | using(var stream = new FileStream(physicalPath, FileMode.Create)) 161 | { 162 | postedFile.CopyTo(stream); 163 | } 164 | 165 | return new JsonResult(filename); 166 | } 167 | catch (Exception) 168 | { 169 | 170 | return new JsonResult("anonymous.png"); 171 | } 172 | } 173 | 174 | 175 | [Route("GetAllDepartmentNames")] 176 | public JsonResult GetAllDepartmentNames() 177 | { 178 | string query = @" 179 | select DepartmentName from dbo.Department 180 | "; 181 | DataTable table = new DataTable(); 182 | string sqlDataSource = _configuration.GetConnectionString("EmployeeAppCon"); 183 | SqlDataReader myReader; 184 | using (SqlConnection myCon = new SqlConnection(sqlDataSource)) 185 | { 186 | myCon.Open(); 187 | using (SqlCommand myCommand = new SqlCommand(query, myCon)) 188 | { 189 | myReader = myCommand.ExecuteReader(); 190 | table.Load(myReader); ; 191 | 192 | myReader.Close(); 193 | myCon.Close(); 194 | } 195 | } 196 | 197 | return new JsonResult(table); 198 | } 199 | 200 | 201 | } 202 | } 203 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/project.assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "targets": { 4 | ".NETCoreApp,Version=v3.1": { 5 | "Microsoft.AspNetCore.JsonPatch/3.1.9": { 6 | "type": "package", 7 | "dependencies": { 8 | "Microsoft.CSharp": "4.7.0", 9 | "Newtonsoft.Json": "12.0.2" 10 | }, 11 | "compile": { 12 | "lib/netstandard2.0/Microsoft.AspNetCore.JsonPatch.dll": {} 13 | }, 14 | "runtime": { 15 | "lib/netstandard2.0/Microsoft.AspNetCore.JsonPatch.dll": {} 16 | } 17 | }, 18 | "Microsoft.AspNetCore.Mvc.NewtonsoftJson/3.1.9": { 19 | "type": "package", 20 | "dependencies": { 21 | "Microsoft.AspNetCore.JsonPatch": "3.1.9", 22 | "Newtonsoft.Json": "12.0.2", 23 | "Newtonsoft.Json.Bson": "1.0.2" 24 | }, 25 | "compile": { 26 | "lib/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll": {} 27 | }, 28 | "runtime": { 29 | "lib/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll": {} 30 | }, 31 | "frameworkReferences": [ 32 | "Microsoft.AspNetCore.App" 33 | ] 34 | }, 35 | "Microsoft.CSharp/4.7.0": { 36 | "type": "package", 37 | "compile": { 38 | "ref/netcoreapp2.0/_._": {} 39 | }, 40 | "runtime": { 41 | "lib/netcoreapp2.0/_._": {} 42 | } 43 | }, 44 | "Microsoft.NETCore.Platforms/3.1.0": { 45 | "type": "package", 46 | "compile": { 47 | "lib/netstandard1.0/_._": {} 48 | }, 49 | "runtime": { 50 | "lib/netstandard1.0/_._": {} 51 | } 52 | }, 53 | "Microsoft.Win32.Registry/4.7.0": { 54 | "type": "package", 55 | "dependencies": { 56 | "System.Security.AccessControl": "4.7.0", 57 | "System.Security.Principal.Windows": "4.7.0" 58 | }, 59 | "compile": { 60 | "ref/netstandard2.0/_._": {} 61 | }, 62 | "runtime": { 63 | "lib/netstandard2.0/Microsoft.Win32.Registry.dll": {} 64 | }, 65 | "runtimeTargets": { 66 | "runtimes/unix/lib/netstandard2.0/Microsoft.Win32.Registry.dll": { 67 | "assetType": "runtime", 68 | "rid": "unix" 69 | }, 70 | "runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.dll": { 71 | "assetType": "runtime", 72 | "rid": "win" 73 | } 74 | } 75 | }, 76 | "Newtonsoft.Json/12.0.2": { 77 | "type": "package", 78 | "compile": { 79 | "lib/netstandard2.0/Newtonsoft.Json.dll": {} 80 | }, 81 | "runtime": { 82 | "lib/netstandard2.0/Newtonsoft.Json.dll": {} 83 | } 84 | }, 85 | "Newtonsoft.Json.Bson/1.0.2": { 86 | "type": "package", 87 | "dependencies": { 88 | "Newtonsoft.Json": "12.0.1" 89 | }, 90 | "compile": { 91 | "lib/netstandard2.0/Newtonsoft.Json.Bson.dll": {} 92 | }, 93 | "runtime": { 94 | "lib/netstandard2.0/Newtonsoft.Json.Bson.dll": {} 95 | } 96 | }, 97 | "runtime.native.System.Data.SqlClient.sni/4.7.0": { 98 | "type": "package", 99 | "dependencies": { 100 | "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni": "4.4.0", 101 | "runtime.win-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0", 102 | "runtime.win-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0" 103 | } 104 | }, 105 | "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": { 106 | "type": "package", 107 | "runtimeTargets": { 108 | "runtimes/win-arm64/native/sni.dll": { 109 | "assetType": "native", 110 | "rid": "win-arm64" 111 | } 112 | } 113 | }, 114 | "runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": { 115 | "type": "package", 116 | "runtimeTargets": { 117 | "runtimes/win-x64/native/sni.dll": { 118 | "assetType": "native", 119 | "rid": "win-x64" 120 | } 121 | } 122 | }, 123 | "runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": { 124 | "type": "package", 125 | "runtimeTargets": { 126 | "runtimes/win-x86/native/sni.dll": { 127 | "assetType": "native", 128 | "rid": "win-x86" 129 | } 130 | } 131 | }, 132 | "System.Data.SqlClient/4.8.2": { 133 | "type": "package", 134 | "dependencies": { 135 | "Microsoft.Win32.Registry": "4.7.0", 136 | "System.Security.Principal.Windows": "4.7.0", 137 | "runtime.native.System.Data.SqlClient.sni": "4.7.0" 138 | }, 139 | "compile": { 140 | "ref/netcoreapp2.1/System.Data.SqlClient.dll": {} 141 | }, 142 | "runtime": { 143 | "lib/netcoreapp2.1/System.Data.SqlClient.dll": {} 144 | }, 145 | "runtimeTargets": { 146 | "runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll": { 147 | "assetType": "runtime", 148 | "rid": "unix" 149 | }, 150 | "runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll": { 151 | "assetType": "runtime", 152 | "rid": "win" 153 | } 154 | } 155 | }, 156 | "System.Security.AccessControl/4.7.0": { 157 | "type": "package", 158 | "dependencies": { 159 | "Microsoft.NETCore.Platforms": "3.1.0", 160 | "System.Security.Principal.Windows": "4.7.0" 161 | }, 162 | "compile": { 163 | "ref/netstandard2.0/_._": {} 164 | }, 165 | "runtime": { 166 | "lib/netstandard2.0/System.Security.AccessControl.dll": {} 167 | }, 168 | "runtimeTargets": { 169 | "runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": { 170 | "assetType": "runtime", 171 | "rid": "win" 172 | } 173 | } 174 | }, 175 | "System.Security.Principal.Windows/4.7.0": { 176 | "type": "package", 177 | "compile": { 178 | "ref/netcoreapp3.0/_._": {} 179 | }, 180 | "runtime": { 181 | "lib/netstandard2.0/System.Security.Principal.Windows.dll": {} 182 | }, 183 | "runtimeTargets": { 184 | "runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": { 185 | "assetType": "runtime", 186 | "rid": "unix" 187 | }, 188 | "runtimes/win/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": { 189 | "assetType": "runtime", 190 | "rid": "win" 191 | } 192 | } 193 | } 194 | } 195 | }, 196 | "libraries": { 197 | "Microsoft.AspNetCore.JsonPatch/3.1.9": { 198 | "sha512": "ugsTdK5wlmwZQ1Y4rvIoqci4uCQ7dgtAIG8cFlvB+3hXdDlECkE8xxoUrFgmZ4TGIuUwRpmWp5pvjX1n8gzJeg==", 199 | "type": "package", 200 | "path": "microsoft.aspnetcore.jsonpatch/3.1.9", 201 | "files": [ 202 | ".nupkg.metadata", 203 | ".signature.p7s", 204 | "Icon.png", 205 | "THIRD-PARTY-NOTICES.TXT", 206 | "lib/netstandard2.0/Microsoft.AspNetCore.JsonPatch.dll", 207 | "lib/netstandard2.0/Microsoft.AspNetCore.JsonPatch.xml", 208 | "microsoft.aspnetcore.jsonpatch.3.1.9.nupkg.sha512", 209 | "microsoft.aspnetcore.jsonpatch.nuspec" 210 | ] 211 | }, 212 | "Microsoft.AspNetCore.Mvc.NewtonsoftJson/3.1.9": { 213 | "sha512": "uc2OLoGtc8YIJDsGD2NqdzhFcinqKjRITntscVrWWwqN/LZjUZ6VuXk+Qf7rKK53S5+nsaQvb6ofpnSPfhv/Cw==", 214 | "type": "package", 215 | "path": "microsoft.aspnetcore.mvc.newtonsoftjson/3.1.9", 216 | "files": [ 217 | ".nupkg.metadata", 218 | ".signature.p7s", 219 | "Icon.png", 220 | "THIRD-PARTY-NOTICES.TXT", 221 | "lib/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll", 222 | "lib/netcoreapp3.1/Microsoft.AspNetCore.Mvc.NewtonsoftJson.xml", 223 | "microsoft.aspnetcore.mvc.newtonsoftjson.3.1.9.nupkg.sha512", 224 | "microsoft.aspnetcore.mvc.newtonsoftjson.nuspec" 225 | ] 226 | }, 227 | "Microsoft.CSharp/4.7.0": { 228 | "sha512": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==", 229 | "type": "package", 230 | "path": "microsoft.csharp/4.7.0", 231 | "files": [ 232 | ".nupkg.metadata", 233 | ".signature.p7s", 234 | "LICENSE.TXT", 235 | "THIRD-PARTY-NOTICES.TXT", 236 | "lib/MonoAndroid10/_._", 237 | "lib/MonoTouch10/_._", 238 | "lib/net45/_._", 239 | "lib/netcore50/Microsoft.CSharp.dll", 240 | "lib/netcoreapp2.0/_._", 241 | "lib/netstandard1.3/Microsoft.CSharp.dll", 242 | "lib/netstandard2.0/Microsoft.CSharp.dll", 243 | "lib/netstandard2.0/Microsoft.CSharp.xml", 244 | "lib/portable-net45+win8+wp8+wpa81/_._", 245 | "lib/uap10.0.16299/_._", 246 | "lib/win8/_._", 247 | "lib/wp80/_._", 248 | "lib/wpa81/_._", 249 | "lib/xamarinios10/_._", 250 | "lib/xamarinmac20/_._", 251 | "lib/xamarintvos10/_._", 252 | "lib/xamarinwatchos10/_._", 253 | "microsoft.csharp.4.7.0.nupkg.sha512", 254 | "microsoft.csharp.nuspec", 255 | "ref/MonoAndroid10/_._", 256 | "ref/MonoTouch10/_._", 257 | "ref/net45/_._", 258 | "ref/netcore50/Microsoft.CSharp.dll", 259 | "ref/netcore50/Microsoft.CSharp.xml", 260 | "ref/netcore50/de/Microsoft.CSharp.xml", 261 | "ref/netcore50/es/Microsoft.CSharp.xml", 262 | "ref/netcore50/fr/Microsoft.CSharp.xml", 263 | "ref/netcore50/it/Microsoft.CSharp.xml", 264 | "ref/netcore50/ja/Microsoft.CSharp.xml", 265 | "ref/netcore50/ko/Microsoft.CSharp.xml", 266 | "ref/netcore50/ru/Microsoft.CSharp.xml", 267 | "ref/netcore50/zh-hans/Microsoft.CSharp.xml", 268 | "ref/netcore50/zh-hant/Microsoft.CSharp.xml", 269 | "ref/netcoreapp2.0/_._", 270 | "ref/netstandard1.0/Microsoft.CSharp.dll", 271 | "ref/netstandard1.0/Microsoft.CSharp.xml", 272 | "ref/netstandard1.0/de/Microsoft.CSharp.xml", 273 | "ref/netstandard1.0/es/Microsoft.CSharp.xml", 274 | "ref/netstandard1.0/fr/Microsoft.CSharp.xml", 275 | "ref/netstandard1.0/it/Microsoft.CSharp.xml", 276 | "ref/netstandard1.0/ja/Microsoft.CSharp.xml", 277 | "ref/netstandard1.0/ko/Microsoft.CSharp.xml", 278 | "ref/netstandard1.0/ru/Microsoft.CSharp.xml", 279 | "ref/netstandard1.0/zh-hans/Microsoft.CSharp.xml", 280 | "ref/netstandard1.0/zh-hant/Microsoft.CSharp.xml", 281 | "ref/netstandard2.0/Microsoft.CSharp.dll", 282 | "ref/netstandard2.0/Microsoft.CSharp.xml", 283 | "ref/portable-net45+win8+wp8+wpa81/_._", 284 | "ref/uap10.0.16299/_._", 285 | "ref/win8/_._", 286 | "ref/wp80/_._", 287 | "ref/wpa81/_._", 288 | "ref/xamarinios10/_._", 289 | "ref/xamarinmac20/_._", 290 | "ref/xamarintvos10/_._", 291 | "ref/xamarinwatchos10/_._", 292 | "useSharedDesignerContext.txt", 293 | "version.txt" 294 | ] 295 | }, 296 | "Microsoft.NETCore.Platforms/3.1.0": { 297 | "sha512": "z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w==", 298 | "type": "package", 299 | "path": "microsoft.netcore.platforms/3.1.0", 300 | "files": [ 301 | ".nupkg.metadata", 302 | ".signature.p7s", 303 | "LICENSE.TXT", 304 | "THIRD-PARTY-NOTICES.TXT", 305 | "lib/netstandard1.0/_._", 306 | "microsoft.netcore.platforms.3.1.0.nupkg.sha512", 307 | "microsoft.netcore.platforms.nuspec", 308 | "runtime.json", 309 | "useSharedDesignerContext.txt", 310 | "version.txt" 311 | ] 312 | }, 313 | "Microsoft.Win32.Registry/4.7.0": { 314 | "sha512": "KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==", 315 | "type": "package", 316 | "path": "microsoft.win32.registry/4.7.0", 317 | "files": [ 318 | ".nupkg.metadata", 319 | ".signature.p7s", 320 | "LICENSE.TXT", 321 | "THIRD-PARTY-NOTICES.TXT", 322 | "lib/net46/Microsoft.Win32.Registry.dll", 323 | "lib/net461/Microsoft.Win32.Registry.dll", 324 | "lib/net461/Microsoft.Win32.Registry.xml", 325 | "lib/netstandard1.3/Microsoft.Win32.Registry.dll", 326 | "lib/netstandard2.0/Microsoft.Win32.Registry.dll", 327 | "lib/netstandard2.0/Microsoft.Win32.Registry.xml", 328 | "microsoft.win32.registry.4.7.0.nupkg.sha512", 329 | "microsoft.win32.registry.nuspec", 330 | "ref/net46/Microsoft.Win32.Registry.dll", 331 | "ref/net461/Microsoft.Win32.Registry.dll", 332 | "ref/net461/Microsoft.Win32.Registry.xml", 333 | "ref/net472/Microsoft.Win32.Registry.dll", 334 | "ref/net472/Microsoft.Win32.Registry.xml", 335 | "ref/netstandard1.3/Microsoft.Win32.Registry.dll", 336 | "ref/netstandard1.3/Microsoft.Win32.Registry.xml", 337 | "ref/netstandard1.3/de/Microsoft.Win32.Registry.xml", 338 | "ref/netstandard1.3/es/Microsoft.Win32.Registry.xml", 339 | "ref/netstandard1.3/fr/Microsoft.Win32.Registry.xml", 340 | "ref/netstandard1.3/it/Microsoft.Win32.Registry.xml", 341 | "ref/netstandard1.3/ja/Microsoft.Win32.Registry.xml", 342 | "ref/netstandard1.3/ko/Microsoft.Win32.Registry.xml", 343 | "ref/netstandard1.3/ru/Microsoft.Win32.Registry.xml", 344 | "ref/netstandard1.3/zh-hans/Microsoft.Win32.Registry.xml", 345 | "ref/netstandard1.3/zh-hant/Microsoft.Win32.Registry.xml", 346 | "ref/netstandard2.0/Microsoft.Win32.Registry.dll", 347 | "ref/netstandard2.0/Microsoft.Win32.Registry.xml", 348 | "runtimes/unix/lib/netstandard2.0/Microsoft.Win32.Registry.dll", 349 | "runtimes/unix/lib/netstandard2.0/Microsoft.Win32.Registry.xml", 350 | "runtimes/win/lib/net46/Microsoft.Win32.Registry.dll", 351 | "runtimes/win/lib/net461/Microsoft.Win32.Registry.dll", 352 | "runtimes/win/lib/net461/Microsoft.Win32.Registry.xml", 353 | "runtimes/win/lib/netstandard1.3/Microsoft.Win32.Registry.dll", 354 | "runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.dll", 355 | "runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.xml", 356 | "useSharedDesignerContext.txt", 357 | "version.txt" 358 | ] 359 | }, 360 | "Newtonsoft.Json/12.0.2": { 361 | "sha512": "rTK0s2EKlfHsQsH6Yx2smvcTCeyoDNgCW7FEYyV01drPlh2T243PR2DiDXqtC5N4GDm4Ma/lkxfW5a/4793vbA==", 362 | "type": "package", 363 | "path": "newtonsoft.json/12.0.2", 364 | "files": [ 365 | ".nupkg.metadata", 366 | ".signature.p7s", 367 | "LICENSE.md", 368 | "lib/net20/Newtonsoft.Json.dll", 369 | "lib/net20/Newtonsoft.Json.xml", 370 | "lib/net35/Newtonsoft.Json.dll", 371 | "lib/net35/Newtonsoft.Json.xml", 372 | "lib/net40/Newtonsoft.Json.dll", 373 | "lib/net40/Newtonsoft.Json.xml", 374 | "lib/net45/Newtonsoft.Json.dll", 375 | "lib/net45/Newtonsoft.Json.xml", 376 | "lib/netstandard1.0/Newtonsoft.Json.dll", 377 | "lib/netstandard1.0/Newtonsoft.Json.xml", 378 | "lib/netstandard1.3/Newtonsoft.Json.dll", 379 | "lib/netstandard1.3/Newtonsoft.Json.xml", 380 | "lib/netstandard2.0/Newtonsoft.Json.dll", 381 | "lib/netstandard2.0/Newtonsoft.Json.xml", 382 | "lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll", 383 | "lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.xml", 384 | "lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll", 385 | "lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.xml", 386 | "newtonsoft.json.12.0.2.nupkg.sha512", 387 | "newtonsoft.json.nuspec" 388 | ] 389 | }, 390 | "Newtonsoft.Json.Bson/1.0.2": { 391 | "sha512": "QYFyxhaABwmq3p/21VrZNYvCg3DaEoN/wUuw5nmfAf0X3HLjgupwhkEWdgfb9nvGAUIv3osmZoD3kKl4jxEmYQ==", 392 | "type": "package", 393 | "path": "newtonsoft.json.bson/1.0.2", 394 | "files": [ 395 | ".nupkg.metadata", 396 | ".signature.p7s", 397 | "LICENSE.md", 398 | "lib/net45/Newtonsoft.Json.Bson.dll", 399 | "lib/net45/Newtonsoft.Json.Bson.pdb", 400 | "lib/net45/Newtonsoft.Json.Bson.xml", 401 | "lib/netstandard1.3/Newtonsoft.Json.Bson.dll", 402 | "lib/netstandard1.3/Newtonsoft.Json.Bson.pdb", 403 | "lib/netstandard1.3/Newtonsoft.Json.Bson.xml", 404 | "lib/netstandard2.0/Newtonsoft.Json.Bson.dll", 405 | "lib/netstandard2.0/Newtonsoft.Json.Bson.pdb", 406 | "lib/netstandard2.0/Newtonsoft.Json.Bson.xml", 407 | "newtonsoft.json.bson.1.0.2.nupkg.sha512", 408 | "newtonsoft.json.bson.nuspec" 409 | ] 410 | }, 411 | "runtime.native.System.Data.SqlClient.sni/4.7.0": { 412 | "sha512": "9kyFSIdN3T0qjDQ2R0HRXYIhS3l5psBzQi6qqhdLz+SzFyEy4sVxNOke+yyYv8Cu8rPER12c3RDjLT8wF3WBYQ==", 413 | "type": "package", 414 | "path": "runtime.native.system.data.sqlclient.sni/4.7.0", 415 | "files": [ 416 | ".nupkg.metadata", 417 | ".signature.p7s", 418 | "LICENSE.TXT", 419 | "THIRD-PARTY-NOTICES.TXT", 420 | "runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512", 421 | "runtime.native.system.data.sqlclient.sni.nuspec", 422 | "useSharedDesignerContext.txt", 423 | "version.txt" 424 | ] 425 | }, 426 | "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": { 427 | "sha512": "LbrynESTp3bm5O/+jGL8v0Qg5SJlTV08lpIpFesXjF6uGNMWqFnUQbYBJwZTeua6E/Y7FIM1C54Ey1btLWupdg==", 428 | "type": "package", 429 | "path": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni/4.4.0", 430 | "files": [ 431 | ".nupkg.metadata", 432 | ".signature.p7s", 433 | "ThirdPartyNotices.txt", 434 | "dotnet_library_license.txt", 435 | "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 436 | "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.nuspec", 437 | "runtimes/win-arm64/native/sni.dll", 438 | "useSharedDesignerContext.txt", 439 | "version.txt" 440 | ] 441 | }, 442 | "runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": { 443 | "sha512": "38ugOfkYJqJoX9g6EYRlZB5U2ZJH51UP8ptxZgdpS07FgOEToV+lS11ouNK2PM12Pr6X/PpT5jK82G3DwH/SxQ==", 444 | "type": "package", 445 | "path": "runtime.win-x64.runtime.native.system.data.sqlclient.sni/4.4.0", 446 | "files": [ 447 | ".nupkg.metadata", 448 | ".signature.p7s", 449 | "ThirdPartyNotices.txt", 450 | "dotnet_library_license.txt", 451 | "runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 452 | "runtime.win-x64.runtime.native.system.data.sqlclient.sni.nuspec", 453 | "runtimes/win-x64/native/sni.dll", 454 | "useSharedDesignerContext.txt", 455 | "version.txt" 456 | ] 457 | }, 458 | "runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": { 459 | "sha512": "YhEdSQUsTx+C8m8Bw7ar5/VesXvCFMItyZF7G1AUY+OM0VPZUOeAVpJ4Wl6fydBGUYZxojTDR3I6Bj/+BPkJNA==", 460 | "type": "package", 461 | "path": "runtime.win-x86.runtime.native.system.data.sqlclient.sni/4.4.0", 462 | "files": [ 463 | ".nupkg.metadata", 464 | ".signature.p7s", 465 | "ThirdPartyNotices.txt", 466 | "dotnet_library_license.txt", 467 | "runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", 468 | "runtime.win-x86.runtime.native.system.data.sqlclient.sni.nuspec", 469 | "runtimes/win-x86/native/sni.dll", 470 | "useSharedDesignerContext.txt", 471 | "version.txt" 472 | ] 473 | }, 474 | "System.Data.SqlClient/4.8.2": { 475 | "sha512": "80vGtW6uLB4AkyrdVuKTXYUyuXDPAsSKbTVfvjndZaRAYxzFzWhJbvUfeAKrN+128ycWZjLIAl61dFUwWHOOTw==", 476 | "type": "package", 477 | "path": "system.data.sqlclient/4.8.2", 478 | "files": [ 479 | ".nupkg.metadata", 480 | ".signature.p7s", 481 | "Icon.png", 482 | "LICENSE.TXT", 483 | "THIRD-PARTY-NOTICES.TXT", 484 | "lib/MonoAndroid10/_._", 485 | "lib/MonoTouch10/_._", 486 | "lib/net451/System.Data.SqlClient.dll", 487 | "lib/net46/System.Data.SqlClient.dll", 488 | "lib/net461/System.Data.SqlClient.dll", 489 | "lib/net461/System.Data.SqlClient.xml", 490 | "lib/netcoreapp2.1/System.Data.SqlClient.dll", 491 | "lib/netcoreapp2.1/System.Data.SqlClient.xml", 492 | "lib/netstandard1.2/System.Data.SqlClient.dll", 493 | "lib/netstandard1.2/System.Data.SqlClient.xml", 494 | "lib/netstandard1.3/System.Data.SqlClient.dll", 495 | "lib/netstandard1.3/System.Data.SqlClient.xml", 496 | "lib/netstandard2.0/System.Data.SqlClient.dll", 497 | "lib/netstandard2.0/System.Data.SqlClient.xml", 498 | "lib/xamarinios10/_._", 499 | "lib/xamarinmac20/_._", 500 | "lib/xamarintvos10/_._", 501 | "lib/xamarinwatchos10/_._", 502 | "ref/MonoAndroid10/_._", 503 | "ref/MonoTouch10/_._", 504 | "ref/net451/System.Data.SqlClient.dll", 505 | "ref/net46/System.Data.SqlClient.dll", 506 | "ref/net461/System.Data.SqlClient.dll", 507 | "ref/net461/System.Data.SqlClient.xml", 508 | "ref/netcoreapp2.1/System.Data.SqlClient.dll", 509 | "ref/netcoreapp2.1/System.Data.SqlClient.xml", 510 | "ref/netstandard1.2/System.Data.SqlClient.dll", 511 | "ref/netstandard1.2/System.Data.SqlClient.xml", 512 | "ref/netstandard1.2/de/System.Data.SqlClient.xml", 513 | "ref/netstandard1.2/es/System.Data.SqlClient.xml", 514 | "ref/netstandard1.2/fr/System.Data.SqlClient.xml", 515 | "ref/netstandard1.2/it/System.Data.SqlClient.xml", 516 | "ref/netstandard1.2/ja/System.Data.SqlClient.xml", 517 | "ref/netstandard1.2/ko/System.Data.SqlClient.xml", 518 | "ref/netstandard1.2/ru/System.Data.SqlClient.xml", 519 | "ref/netstandard1.2/zh-hans/System.Data.SqlClient.xml", 520 | "ref/netstandard1.2/zh-hant/System.Data.SqlClient.xml", 521 | "ref/netstandard1.3/System.Data.SqlClient.dll", 522 | "ref/netstandard1.3/System.Data.SqlClient.xml", 523 | "ref/netstandard1.3/de/System.Data.SqlClient.xml", 524 | "ref/netstandard1.3/es/System.Data.SqlClient.xml", 525 | "ref/netstandard1.3/fr/System.Data.SqlClient.xml", 526 | "ref/netstandard1.3/it/System.Data.SqlClient.xml", 527 | "ref/netstandard1.3/ja/System.Data.SqlClient.xml", 528 | "ref/netstandard1.3/ko/System.Data.SqlClient.xml", 529 | "ref/netstandard1.3/ru/System.Data.SqlClient.xml", 530 | "ref/netstandard1.3/zh-hans/System.Data.SqlClient.xml", 531 | "ref/netstandard1.3/zh-hant/System.Data.SqlClient.xml", 532 | "ref/netstandard2.0/System.Data.SqlClient.dll", 533 | "ref/netstandard2.0/System.Data.SqlClient.xml", 534 | "ref/xamarinios10/_._", 535 | "ref/xamarinmac20/_._", 536 | "ref/xamarintvos10/_._", 537 | "ref/xamarinwatchos10/_._", 538 | "runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll", 539 | "runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.xml", 540 | "runtimes/unix/lib/netstandard1.3/System.Data.SqlClient.dll", 541 | "runtimes/unix/lib/netstandard2.0/System.Data.SqlClient.dll", 542 | "runtimes/unix/lib/netstandard2.0/System.Data.SqlClient.xml", 543 | "runtimes/win/lib/net451/System.Data.SqlClient.dll", 544 | "runtimes/win/lib/net46/System.Data.SqlClient.dll", 545 | "runtimes/win/lib/net461/System.Data.SqlClient.dll", 546 | "runtimes/win/lib/net461/System.Data.SqlClient.xml", 547 | "runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll", 548 | "runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.xml", 549 | "runtimes/win/lib/netstandard1.3/System.Data.SqlClient.dll", 550 | "runtimes/win/lib/netstandard2.0/System.Data.SqlClient.dll", 551 | "runtimes/win/lib/netstandard2.0/System.Data.SqlClient.xml", 552 | "runtimes/win/lib/uap10.0.16299/System.Data.SqlClient.dll", 553 | "runtimes/win/lib/uap10.0.16299/System.Data.SqlClient.xml", 554 | "system.data.sqlclient.4.8.2.nupkg.sha512", 555 | "system.data.sqlclient.nuspec", 556 | "useSharedDesignerContext.txt", 557 | "version.txt" 558 | ] 559 | }, 560 | "System.Security.AccessControl/4.7.0": { 561 | "sha512": "JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==", 562 | "type": "package", 563 | "path": "system.security.accesscontrol/4.7.0", 564 | "files": [ 565 | ".nupkg.metadata", 566 | ".signature.p7s", 567 | "LICENSE.TXT", 568 | "THIRD-PARTY-NOTICES.TXT", 569 | "lib/net46/System.Security.AccessControl.dll", 570 | "lib/net461/System.Security.AccessControl.dll", 571 | "lib/net461/System.Security.AccessControl.xml", 572 | "lib/netstandard1.3/System.Security.AccessControl.dll", 573 | "lib/netstandard2.0/System.Security.AccessControl.dll", 574 | "lib/netstandard2.0/System.Security.AccessControl.xml", 575 | "lib/uap10.0.16299/_._", 576 | "ref/net46/System.Security.AccessControl.dll", 577 | "ref/net461/System.Security.AccessControl.dll", 578 | "ref/net461/System.Security.AccessControl.xml", 579 | "ref/netstandard1.3/System.Security.AccessControl.dll", 580 | "ref/netstandard1.3/System.Security.AccessControl.xml", 581 | "ref/netstandard1.3/de/System.Security.AccessControl.xml", 582 | "ref/netstandard1.3/es/System.Security.AccessControl.xml", 583 | "ref/netstandard1.3/fr/System.Security.AccessControl.xml", 584 | "ref/netstandard1.3/it/System.Security.AccessControl.xml", 585 | "ref/netstandard1.3/ja/System.Security.AccessControl.xml", 586 | "ref/netstandard1.3/ko/System.Security.AccessControl.xml", 587 | "ref/netstandard1.3/ru/System.Security.AccessControl.xml", 588 | "ref/netstandard1.3/zh-hans/System.Security.AccessControl.xml", 589 | "ref/netstandard1.3/zh-hant/System.Security.AccessControl.xml", 590 | "ref/netstandard2.0/System.Security.AccessControl.dll", 591 | "ref/netstandard2.0/System.Security.AccessControl.xml", 592 | "ref/uap10.0.16299/_._", 593 | "runtimes/win/lib/net46/System.Security.AccessControl.dll", 594 | "runtimes/win/lib/net461/System.Security.AccessControl.dll", 595 | "runtimes/win/lib/net461/System.Security.AccessControl.xml", 596 | "runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll", 597 | "runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.xml", 598 | "runtimes/win/lib/netstandard1.3/System.Security.AccessControl.dll", 599 | "runtimes/win/lib/uap10.0.16299/_._", 600 | "system.security.accesscontrol.4.7.0.nupkg.sha512", 601 | "system.security.accesscontrol.nuspec", 602 | "useSharedDesignerContext.txt", 603 | "version.txt" 604 | ] 605 | }, 606 | "System.Security.Principal.Windows/4.7.0": { 607 | "sha512": "ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ==", 608 | "type": "package", 609 | "path": "system.security.principal.windows/4.7.0", 610 | "files": [ 611 | ".nupkg.metadata", 612 | ".signature.p7s", 613 | "LICENSE.TXT", 614 | "THIRD-PARTY-NOTICES.TXT", 615 | "lib/net46/System.Security.Principal.Windows.dll", 616 | "lib/net461/System.Security.Principal.Windows.dll", 617 | "lib/net461/System.Security.Principal.Windows.xml", 618 | "lib/netstandard1.3/System.Security.Principal.Windows.dll", 619 | "lib/netstandard2.0/System.Security.Principal.Windows.dll", 620 | "lib/netstandard2.0/System.Security.Principal.Windows.xml", 621 | "lib/uap10.0.16299/_._", 622 | "ref/net46/System.Security.Principal.Windows.dll", 623 | "ref/net461/System.Security.Principal.Windows.dll", 624 | "ref/net461/System.Security.Principal.Windows.xml", 625 | "ref/netcoreapp3.0/System.Security.Principal.Windows.dll", 626 | "ref/netcoreapp3.0/System.Security.Principal.Windows.xml", 627 | "ref/netstandard1.3/System.Security.Principal.Windows.dll", 628 | "ref/netstandard1.3/System.Security.Principal.Windows.xml", 629 | "ref/netstandard1.3/de/System.Security.Principal.Windows.xml", 630 | "ref/netstandard1.3/es/System.Security.Principal.Windows.xml", 631 | "ref/netstandard1.3/fr/System.Security.Principal.Windows.xml", 632 | "ref/netstandard1.3/it/System.Security.Principal.Windows.xml", 633 | "ref/netstandard1.3/ja/System.Security.Principal.Windows.xml", 634 | "ref/netstandard1.3/ko/System.Security.Principal.Windows.xml", 635 | "ref/netstandard1.3/ru/System.Security.Principal.Windows.xml", 636 | "ref/netstandard1.3/zh-hans/System.Security.Principal.Windows.xml", 637 | "ref/netstandard1.3/zh-hant/System.Security.Principal.Windows.xml", 638 | "ref/netstandard2.0/System.Security.Principal.Windows.dll", 639 | "ref/netstandard2.0/System.Security.Principal.Windows.xml", 640 | "ref/uap10.0.16299/_._", 641 | "runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll", 642 | "runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.xml", 643 | "runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.dll", 644 | "runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.xml", 645 | "runtimes/win/lib/net46/System.Security.Principal.Windows.dll", 646 | "runtimes/win/lib/net461/System.Security.Principal.Windows.dll", 647 | "runtimes/win/lib/net461/System.Security.Principal.Windows.xml", 648 | "runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll", 649 | "runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.xml", 650 | "runtimes/win/lib/netcoreapp2.1/System.Security.Principal.Windows.dll", 651 | "runtimes/win/lib/netcoreapp2.1/System.Security.Principal.Windows.xml", 652 | "runtimes/win/lib/netstandard1.3/System.Security.Principal.Windows.dll", 653 | "runtimes/win/lib/uap10.0.16299/_._", 654 | "system.security.principal.windows.4.7.0.nupkg.sha512", 655 | "system.security.principal.windows.nuspec", 656 | "useSharedDesignerContext.txt", 657 | "version.txt" 658 | ] 659 | } 660 | }, 661 | "projectFileDependencyGroups": { 662 | ".NETCoreApp,Version=v3.1": [ 663 | "Microsoft.AspNetCore.Mvc.NewtonsoftJson >= 3.1.9", 664 | "System.Data.SqlClient >= 4.8.2" 665 | ] 666 | }, 667 | "packageFolders": { 668 | "C:\\Users\\Vinay6666\\.nuget\\packages\\": {} 669 | }, 670 | "project": { 671 | "version": "1.0.0", 672 | "restore": { 673 | "projectUniqueName": "E:\\coreAPI\\WebAPI\\WebAPI\\WebAPI.csproj", 674 | "projectName": "WebAPI", 675 | "projectPath": "E:\\coreAPI\\WebAPI\\WebAPI\\WebAPI.csproj", 676 | "packagesPath": "C:\\Users\\Vinay6666\\.nuget\\packages\\", 677 | "outputPath": "E:\\coreAPI\\WebAPI\\WebAPI\\obj\\", 678 | "projectStyle": "PackageReference", 679 | "configFilePaths": [ 680 | "C:\\Users\\Vinay6666\\AppData\\Roaming\\NuGet\\NuGet.Config", 681 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 682 | ], 683 | "originalTargetFrameworks": [ 684 | "netcoreapp3.1" 685 | ], 686 | "sources": { 687 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 688 | "https://api.nuget.org/v3/index.json": {} 689 | }, 690 | "frameworks": { 691 | "netcoreapp3.1": { 692 | "projectReferences": {} 693 | } 694 | }, 695 | "warningProperties": { 696 | "warnAsError": [ 697 | "NU1605" 698 | ] 699 | } 700 | }, 701 | "frameworks": { 702 | "netcoreapp3.1": { 703 | "dependencies": { 704 | "Microsoft.AspNetCore.Mvc.NewtonsoftJson": { 705 | "target": "Package", 706 | "version": "[3.1.9, )" 707 | }, 708 | "System.Data.SqlClient": { 709 | "target": "Package", 710 | "version": "[4.8.2, )" 711 | } 712 | }, 713 | "imports": [ 714 | "net461", 715 | "net462", 716 | "net47", 717 | "net471", 718 | "net472", 719 | "net48" 720 | ], 721 | "assetTargetFallback": true, 722 | "warn": true, 723 | "downloadDependencies": [ 724 | { 725 | "name": "Microsoft.AspNetCore.App.Ref", 726 | "version": "[3.1.2, 3.1.2]" 727 | } 728 | ], 729 | "frameworkReferences": { 730 | "Microsoft.AspNetCore.App": { 731 | "privateAssets": "none" 732 | }, 733 | "Microsoft.NETCore.App": { 734 | "privateAssets": "all" 735 | } 736 | }, 737 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.300\\RuntimeIdentifierGraph.json" 738 | } 739 | } 740 | } 741 | } -------------------------------------------------------------------------------- /WebAPI/.vs/WebAPI/config/applicationhost.config: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 48 | 49 | 50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | 59 | 60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | 79 |
80 |
81 | 82 |
83 |
84 |
85 |
86 |
87 |
88 | 89 |
90 |
91 |
92 |
93 |
94 | 95 |
96 |
97 |
98 | 99 |
100 |
101 | 102 |
103 |
104 | 105 |
106 |
107 |
108 | 109 | 110 |
111 |
112 |
113 |
114 |
115 |
116 | 117 |
118 |
119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | --------------------------------------------------------------------------------