├── Angular5 ├── .angular-cli.json ├── .editorconfig ├── .gitignore ├── README.md ├── e2e │ ├── app.e2e-spec.ts │ ├── app.po.ts │ └── tsconfig.e2e.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── protractor.conf.js ├── src │ ├── app │ │ ├── app.component.css │ │ ├── app.component.html │ │ ├── app.component.spec.ts │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── auth │ │ │ ├── auth.guard.spec.ts │ │ │ └── auth.guard.ts │ │ ├── navbar │ │ │ ├── navbar.component.css │ │ │ ├── navbar.component.html │ │ │ ├── navbar.component.spec.ts │ │ │ └── navbar.component.ts │ │ ├── quiz │ │ │ ├── quiz.component.css │ │ │ ├── quiz.component.html │ │ │ ├── quiz.component.spec.ts │ │ │ └── quiz.component.ts │ │ ├── register │ │ │ ├── register.component.css │ │ │ ├── register.component.html │ │ │ ├── register.component.spec.ts │ │ │ └── register.component.ts │ │ ├── result │ │ │ ├── result.component.css │ │ │ ├── result.component.html │ │ │ ├── result.component.spec.ts │ │ │ └── result.component.ts │ │ ├── routes.ts │ │ └── shared │ │ │ ├── quiz.service.spec.ts │ │ │ └── quiz.service.ts │ ├── assets │ │ ├── .gitkeep │ │ └── img │ │ │ ├── logo.png │ │ │ └── trophy.png │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── favicon.ico │ ├── index.html │ ├── main.ts │ ├── polyfills.ts │ ├── styles.css │ ├── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ └── typings.d.ts ├── tsconfig.json └── tslint.json ├── DBScript.sql ├── README.md ├── Structure of Angular Project.txt └── WebAPI ├── WebAPI.sln ├── WebAPI.v12.suo ├── WebAPI ├── App_Start │ ├── BundleConfig.cs │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ └── WebApiConfig.cs ├── Areas │ └── HelpPage │ │ ├── ApiDescriptionExtensions.cs │ │ ├── App_Start │ │ └── HelpPageConfig.cs │ │ ├── Controllers │ │ └── HelpController.cs │ │ ├── HelpPage.css │ │ ├── HelpPageAreaRegistration.cs │ │ ├── HelpPageConfigurationExtensions.cs │ │ ├── Models │ │ └── HelpPageApiModel.cs │ │ ├── SampleGeneration │ │ ├── HelpPageSampleGenerator.cs │ │ ├── HelpPageSampleKey.cs │ │ ├── ImageSample.cs │ │ ├── InvalidSample.cs │ │ ├── ObjectGenerator.cs │ │ ├── SampleDirection.cs │ │ └── TextSample.cs │ │ ├── Views │ │ ├── Help │ │ │ ├── Api.cshtml │ │ │ ├── DisplayTemplates │ │ │ │ ├── ApiGroup.cshtml │ │ │ │ ├── HelpPageApiModel.cshtml │ │ │ │ ├── ImageSample.cshtml │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ ├── Parameters.cshtml │ │ │ │ ├── Samples.cshtml │ │ │ │ └── TextSample.cshtml │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ └── _Layout.cshtml │ │ ├── Web.config │ │ └── _ViewStart.cshtml │ │ └── XmlDocumentationProvider.cs ├── Content │ ├── Site.css │ ├── bootstrap.css │ └── bootstrap.min.css ├── Controllers │ ├── HomeController.cs │ ├── ParticipantController.cs │ ├── QuizController.cs │ └── ValuesController.cs ├── Global.asax ├── Global.asax.cs ├── Images │ ├── q16.jpg │ └── q17.png ├── Models │ ├── DBModels.Context.cs │ ├── DBModels.Context.tt │ ├── DBModels.Designer.cs │ ├── DBModels.cs │ ├── DBModels.edmx │ ├── DBModels.edmx.diagram │ ├── DBModels.tt │ ├── Participant.cs │ └── Question.cs ├── Project_Readme.html ├── Properties │ └── AssemblyInfo.cs ├── Scripts │ ├── _references.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jquery-1.10.2.intellisense.js │ ├── jquery-1.10.2.js │ ├── jquery-1.10.2.min.js │ ├── jquery-1.10.2.min.map │ ├── modernizr-2.6.2.js │ ├── respond.js │ └── respond.min.js ├── Views │ ├── Home │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _Layout.cshtml │ ├── Web.config │ └── _ViewStart.cshtml ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── WebAPI.csproj ├── WebAPI.csproj.user ├── bin │ ├── Antlr3.Runtime.dll │ ├── Antlr3.Runtime.pdb │ ├── EntityFramework.dll │ ├── EntityFramework.xml │ ├── Microsoft.Web.Infrastructure.dll │ ├── Newtonsoft.Json.dll │ ├── Newtonsoft.Json.xml │ ├── System.Net.Http.Formatting.dll │ ├── System.Net.Http.Formatting.xml │ ├── System.Web.Cors.dll │ ├── System.Web.Helpers.dll │ ├── System.Web.Helpers.xml │ ├── System.Web.Http.Cors.dll │ ├── System.Web.Http.Cors.xml │ ├── System.Web.Http.WebHost.dll │ ├── System.Web.Http.WebHost.xml │ ├── System.Web.Http.dll │ ├── System.Web.Http.xml │ ├── System.Web.Mvc.dll │ ├── System.Web.Mvc.xml │ ├── System.Web.Optimization.dll │ ├── System.Web.Optimization.xml │ ├── System.Web.Razor.dll │ ├── System.Web.Razor.xml │ ├── System.Web.WebPages.Deployment.dll │ ├── System.Web.WebPages.Deployment.xml │ ├── System.Web.WebPages.Razor.dll │ ├── System.Web.WebPages.Razor.xml │ ├── System.Web.WebPages.dll │ ├── System.Web.WebPages.xml │ ├── WebAPI.dll │ ├── WebAPI.dll.config │ ├── WebAPI.pdb │ └── WebGrease.dll ├── favicon.ico ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── obj │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── TempPE │ │ ├── Models.DBModels.Designer.cs.dll │ │ └── Models.DBModels.cs.dll │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── WebAPI.csproj.FileListAbsolute.txt │ │ ├── WebAPI.csprojResolveAssemblyReference.cache │ │ ├── WebAPI.dll │ │ ├── WebAPI.pdb │ │ └── edmxResourcesToEmbed │ │ └── Models │ │ ├── DBModels.csdl │ │ ├── DBModels.msl │ │ └── DBModels.ssdl └── packages.config └── packages ├── Antlr.3.4.1.9004 ├── Antlr.3.4.1.9004.nupkg ├── Antlr.3.4.1.9004.nuspec └── lib │ ├── Antlr3.Runtime.dll │ └── Antlr3.Runtime.pdb ├── EntityFramework.5.0.0 ├── Content │ ├── App.config.transform │ └── Web.config.transform ├── EntityFramework.5.0.0.nupkg ├── EntityFramework.5.0.0.nuspec ├── lib │ ├── net40 │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── net45 │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml └── tools │ ├── EntityFramework.PS3.psd1 │ ├── EntityFramework.PowerShell.Utility.dll │ ├── EntityFramework.PowerShell.dll │ ├── EntityFramework.psd1 │ ├── EntityFramework.psm1 │ ├── Redirect.VS11.config │ ├── Redirect.config │ ├── about_EntityFramework.help.txt │ ├── init.ps1 │ ├── install.ps1 │ └── migrate.exe ├── Microsoft.AspNet.Cors.5.2.4 ├── Microsoft.AspNet.Cors.5.2.4.nupkg ├── Microsoft.AspNet.Cors.5.2.4.nuspec └── lib │ └── net45 │ └── System.Web.Cors.dll ├── Microsoft.AspNet.Mvc.5.0.0 ├── Microsoft.AspNet.Mvc.5.0.0.nupkg ├── Microsoft.AspNet.Mvc.5.0.0.nuspec └── lib │ └── net45 │ ├── System.Web.Mvc.dll │ └── System.Web.Mvc.xml ├── Microsoft.AspNet.Razor.3.0.0 ├── Microsoft.AspNet.Razor.3.0.0.nupkg ├── Microsoft.AspNet.Razor.3.0.0.nuspec └── lib │ └── net45 │ ├── System.Web.Razor.dll │ └── System.Web.Razor.xml ├── Microsoft.AspNet.Web.Optimization.1.1.1 ├── Microsoft.AspNet.Web.Optimization.1.1.1.nupkg ├── Microsoft.AspNet.Web.Optimization.1.1.1.nuspec └── lib │ └── net40 │ ├── System.Web.Optimization.dll │ └── system.web.optimization.xml ├── Microsoft.AspNet.WebApi.5.2.4 ├── Microsoft.AspNet.WebApi.5.2.4.nupkg └── Microsoft.AspNet.WebApi.5.2.4.nuspec ├── Microsoft.AspNet.WebApi.Client.5.2.4 ├── Microsoft.AspNet.WebApi.Client.5.2.4.nupkg ├── Microsoft.AspNet.WebApi.Client.5.2.4.nuspec └── lib │ ├── net45 │ ├── System.Net.Http.Formatting.dll │ └── System.Net.Http.Formatting.xml │ ├── netstandard2.0 │ ├── System.Net.Http.Formatting.dll │ └── System.Net.Http.Formatting.xml │ └── portable-wp8+netcore45+net45+wp81+wpa81 │ ├── System.Net.Http.Formatting.dll │ └── System.Net.Http.Formatting.xml ├── Microsoft.AspNet.WebApi.Core.5.2.4 ├── Content │ └── web.config.transform ├── Microsoft.AspNet.WebApi.Core.5.2.4.nupkg ├── Microsoft.AspNet.WebApi.Core.5.2.4.nuspec └── lib │ └── net45 │ ├── System.Web.Http.dll │ └── System.Web.Http.xml ├── Microsoft.AspNet.WebApi.Cors.5.2.4 ├── Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg ├── Microsoft.AspNet.WebApi.Cors.5.2.4.nuspec └── lib │ └── net45 │ ├── System.Web.Http.Cors.dll │ └── System.Web.Http.Cors.xml ├── Microsoft.AspNet.WebApi.HelpPage.5.0.0 ├── Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg ├── Microsoft.AspNet.WebApi.HelpPage.5.0.0.nuspec └── content │ └── Areas │ └── HelpPage │ ├── ApiDescriptionExtensions.cs.pp │ ├── App_Start │ └── HelpPageConfig.cs.pp │ ├── Controllers │ └── HelpController.cs.pp │ ├── HelpPage.css.pp │ ├── HelpPageAreaRegistration.cs.pp │ ├── HelpPageConfigurationExtensions.cs.pp │ ├── Models │ └── HelpPageApiModel.cs.pp │ ├── SampleGeneration │ ├── HelpPageSampleGenerator.cs.pp │ ├── HelpPageSampleKey.cs.pp │ ├── ImageSample.cs.pp │ ├── InvalidSample.cs.pp │ ├── ObjectGenerator.cs.pp │ ├── SampleDirection.cs.pp │ └── TextSample.cs.pp │ ├── Views │ ├── Help │ │ ├── Api.cshtml.pp │ │ ├── DisplayTemplates │ │ │ ├── ApiGroup.cshtml.pp │ │ │ ├── HelpPageApiModel.cshtml.pp │ │ │ ├── ImageSample.cshtml.pp │ │ │ ├── InvalidSample.cshtml.pp │ │ │ ├── Parameters.cshtml.pp │ │ │ ├── Samples.cshtml.pp │ │ │ └── TextSample.cshtml.pp │ │ └── Index.cshtml.pp │ ├── Shared │ │ └── _Layout.cshtml.pp │ ├── Web.config │ └── _ViewStart.cshtml.pp │ └── XmlDocumentationProvider.cs.pp ├── Microsoft.AspNet.WebApi.WebHost.5.2.4 ├── Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg ├── Microsoft.AspNet.WebApi.WebHost.5.2.4.nuspec └── lib │ └── net45 │ ├── System.Web.Http.WebHost.dll │ └── System.Web.Http.WebHost.xml ├── Microsoft.AspNet.WebPages.3.0.0 ├── Microsoft.AspNet.WebPages.3.0.0.nupkg ├── Microsoft.AspNet.WebPages.3.0.0.nuspec └── lib │ └── net45 │ ├── System.Web.Helpers.dll │ ├── System.Web.Helpers.xml │ ├── System.Web.WebPages.Deployment.dll │ ├── System.Web.WebPages.Deployment.xml │ ├── System.Web.WebPages.Razor.dll │ ├── System.Web.WebPages.Razor.xml │ ├── System.Web.WebPages.dll │ └── System.Web.WebPages.xml ├── Microsoft.Web.Infrastructure.1.0.0.0 ├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg ├── Microsoft.Web.Infrastructure.1.0.0.0.nuspec └── lib │ └── net40 │ └── Microsoft.Web.Infrastructure.dll ├── Modernizr.2.6.2 ├── Content │ └── Scripts │ │ └── modernizr-2.6.2.js ├── Modernizr.2.6.2.nupkg ├── Modernizr.2.6.2.nuspec └── Tools │ ├── common.ps1 │ ├── install.ps1 │ └── uninstall.ps1 ├── Newtonsoft.Json.6.0.8 ├── Newtonsoft.Json.6.0.8.nupkg ├── Newtonsoft.Json.6.0.8.nuspec ├── lib │ ├── net20 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net35 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net40 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net45 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── netcore45 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── portable-net40+sl5+wp80+win8+wpa81 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ └── portable-net45+wp80+win8+wpa81+aspnetcore50 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml └── tools │ └── install.ps1 ├── Respond.1.2.0 ├── Respond.1.2.0.nupkg ├── Respond.1.2.0.nuspec └── content │ └── Scripts │ ├── respond.js │ └── respond.min.js ├── WebGrease.1.5.2 ├── WebGrease.1.5.2.nupkg ├── WebGrease.1.5.2.nuspec ├── lib │ └── WebGrease.dll └── tools │ └── WG.exe ├── bootstrap.3.0.0 ├── bootstrap.3.0.0.nupkg ├── bootstrap.3.0.0.nuspec └── content │ ├── Content │ ├── bootstrap.css │ └── bootstrap.min.css │ ├── Scripts │ ├── bootstrap.js │ └── bootstrap.min.js │ └── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── jQuery.1.10.2 ├── Content │ └── Scripts │ │ ├── jquery-1.10.2-vsdoc.js │ │ ├── jquery-1.10.2.js │ │ ├── jquery-1.10.2.min.js │ │ └── jquery-1.10.2.min.map ├── Tools │ ├── common.ps1 │ ├── install.ps1 │ ├── jquery-1.10.2.intellisense.js │ └── uninstall.ps1 ├── jQuery.1.10.2.nupkg └── jQuery.1.10.2.nuspec └── repositories.config /Angular5/.angular-cli.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "project": { 4 | "name": "angular5" 5 | }, 6 | "apps": [ 7 | { 8 | "root": "src", 9 | "outDir": "dist", 10 | "assets": [ 11 | "assets", 12 | "favicon.ico" 13 | ], 14 | "index": "index.html", 15 | "main": "main.ts", 16 | "polyfills": "polyfills.ts", 17 | "test": "test.ts", 18 | "tsconfig": "tsconfig.app.json", 19 | "testTsconfig": "tsconfig.spec.json", 20 | "prefix": "app", 21 | "styles": [ 22 | "styles.css" 23 | ], 24 | "scripts": [], 25 | "environmentSource": "environments/environment.ts", 26 | "environments": { 27 | "dev": "environments/environment.ts", 28 | "prod": "environments/environment.prod.ts" 29 | } 30 | } 31 | ], 32 | "e2e": { 33 | "protractor": { 34 | "config": "./protractor.conf.js" 35 | } 36 | }, 37 | "lint": [ 38 | { 39 | "project": "src/tsconfig.app.json", 40 | "exclude": "**/node_modules/**" 41 | }, 42 | { 43 | "project": "src/tsconfig.spec.json", 44 | "exclude": "**/node_modules/**" 45 | }, 46 | { 47 | "project": "e2e/tsconfig.e2e.json", 48 | "exclude": "**/node_modules/**" 49 | } 50 | ], 51 | "test": { 52 | "karma": { 53 | "config": "./karma.conf.js" 54 | } 55 | }, 56 | "defaults": { 57 | "styleExt": "css", 58 | "component": {} 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Angular5/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://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 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /Angular5/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /dist-server 6 | /tmp 7 | /out-tsc 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | 28 | # misc 29 | /.sass-cache 30 | /connect.lock 31 | /coverage 32 | /libpeerconnection.log 33 | npm-debug.log 34 | testem.log 35 | /typings 36 | 37 | # e2e 38 | /e2e/*.js 39 | /e2e/*.map 40 | 41 | # System Files 42 | .DS_Store 43 | Thumbs.db 44 | -------------------------------------------------------------------------------- /Angular5/README.md: -------------------------------------------------------------------------------- 1 | # Angular5 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.6. 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 | -------------------------------------------------------------------------------- /Angular5/e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('angular5 App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('Welcome to app!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /Angular5/e2e/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Angular5/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es5", 8 | "types": [ 9 | "jasmine", 10 | "jasminewd2", 11 | "node" 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Angular5/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/cli'], 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/cli/plugins/karma') 14 | ], 15 | client:{ 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | reports: [ 'html', 'lcovonly' ], 20 | fixWebpackSourcePaths: true 21 | }, 22 | angularCli: { 23 | environment: 'dev' 24 | }, 25 | reporters: ['progress', 'kjhtml'], 26 | port: 9876, 27 | colors: true, 28 | logLevel: config.LOG_INFO, 29 | autoWatch: true, 30 | browsers: ['Chrome'], 31 | singleRun: false 32 | }); 33 | }; 34 | -------------------------------------------------------------------------------- /Angular5/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular5", 3 | "version": "0.0.0", 4 | "license": "MIT", 5 | "scripts": { 6 | "ng": "ng", 7 | "start": "ng serve", 8 | "build": "ng build --prod", 9 | "test": "ng test", 10 | "lint": "ng lint", 11 | "e2e": "ng e2e" 12 | }, 13 | "private": true, 14 | "dependencies": { 15 | "@angular/animations": "^5.2.0", 16 | "@angular/common": "^5.2.0", 17 | "@angular/compiler": "^5.2.0", 18 | "@angular/core": "^5.2.0", 19 | "@angular/forms": "^5.2.0", 20 | "@angular/http": "^5.2.0", 21 | "@angular/platform-browser": "^5.2.0", 22 | "@angular/platform-browser-dynamic": "^5.2.0", 23 | "@angular/router": "^5.2.0", 24 | "core-js": "^2.4.1", 25 | "rxjs": "^5.5.6", 26 | "zone.js": "^0.8.19" 27 | }, 28 | "devDependencies": { 29 | "@angular/cli": "1.6.6", 30 | "@angular/compiler-cli": "^5.2.0", 31 | "@angular/language-service": "^5.2.0", 32 | "@types/jasmine": "~2.8.3", 33 | "@types/jasminewd2": "~2.0.2", 34 | "@types/node": "~6.0.60", 35 | "codelyzer": "^4.0.1", 36 | "jasmine-core": "~2.8.0", 37 | "jasmine-spec-reporter": "~4.2.1", 38 | "karma": "~2.0.0", 39 | "karma-chrome-launcher": "~2.2.0", 40 | "karma-coverage-istanbul-reporter": "^1.2.1", 41 | "karma-jasmine": "~1.1.0", 42 | "karma-jasmine-html-reporter": "^0.2.2", 43 | "protractor": "~5.1.2", 44 | "ts-node": "~4.1.0", 45 | "tslint": "~5.9.1", 46 | "typescript": "~2.5.3" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Angular5/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './e2e/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: 'e2e/tsconfig.e2e.json' 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /Angular5/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/app/app.component.css -------------------------------------------------------------------------------- /Angular5/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Angular5/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async } from '@angular/core/testing'; 2 | import { AppComponent } from './app.component'; 3 | describe('AppComponent', () => { 4 | beforeEach(async(() => { 5 | TestBed.configureTestingModule({ 6 | declarations: [ 7 | AppComponent 8 | ], 9 | }).compileComponents(); 10 | })); 11 | it('should create the app', async(() => { 12 | const fixture = TestBed.createComponent(AppComponent); 13 | const app = fixture.debugElement.componentInstance; 14 | expect(app).toBeTruthy(); 15 | })); 16 | it(`should have as title 'app'`, async(() => { 17 | const fixture = TestBed.createComponent(AppComponent); 18 | const app = fixture.debugElement.componentInstance; 19 | expect(app.title).toEqual('app'); 20 | })); 21 | it('should render title in a h1 tag', async(() => { 22 | const fixture = TestBed.createComponent(AppComponent); 23 | fixture.detectChanges(); 24 | const compiled = fixture.debugElement.nativeElement; 25 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); 26 | })); 27 | }); 28 | -------------------------------------------------------------------------------- /Angular5/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 = 'app'; 10 | } 11 | -------------------------------------------------------------------------------- /Angular5/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | import {RouterModule} from '@angular/router'; 4 | import {FormsModule} from '@angular/forms'; 5 | import { HttpClientModule } from '@angular/common/http'; 6 | 7 | 8 | import { AppComponent } from './app.component'; 9 | import { RegisterComponent } from './register/register.component'; 10 | import { NavbarComponent } from './navbar/navbar.component'; 11 | import { QuizComponent } from './quiz/quiz.component'; 12 | import { ResultComponent } from './result/result.component'; 13 | import { appRoutes } from './routes'; 14 | import { QuizService } from './shared/quiz.service'; 15 | import { AuthGuard } from './auth/auth.guard'; 16 | 17 | 18 | @NgModule({ 19 | declarations: [ 20 | AppComponent, 21 | RegisterComponent, 22 | NavbarComponent, 23 | QuizComponent, 24 | ResultComponent 25 | ], 26 | imports: [ 27 | BrowserModule, 28 | RouterModule.forRoot(appRoutes), 29 | FormsModule, 30 | HttpClientModule 31 | ], 32 | providers: [QuizService,AuthGuard], 33 | bootstrap: [AppComponent] 34 | }) 35 | export class AppModule { } 36 | -------------------------------------------------------------------------------- /Angular5/src/app/auth/auth.guard.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async, inject } from '@angular/core/testing'; 2 | 3 | import { AuthGuard } from './auth.guard'; 4 | 5 | describe('AuthGuard', () => { 6 | beforeEach(() => { 7 | TestBed.configureTestingModule({ 8 | providers: [AuthGuard] 9 | }); 10 | }); 11 | 12 | it('should ...', inject([AuthGuard], (guard: AuthGuard) => { 13 | expect(guard).toBeTruthy(); 14 | })); 15 | }); 16 | -------------------------------------------------------------------------------- /Angular5/src/app/auth/auth.guard.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; 3 | import { Observable } from 'rxjs/Observable'; 4 | import { Router } from '@angular/router'; 5 | 6 | @Injectable() 7 | export class AuthGuard implements CanActivate { 8 | constructor(private router: Router) { } 9 | canActivate( 10 | next: ActivatedRouteSnapshot, 11 | state: RouterStateSnapshot): boolean { 12 | debugger 13 | if (localStorage.getItem('participant') != null) 14 | return true; 15 | this.router.navigate(['/register']); 16 | return false; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Angular5/src/app/navbar/navbar.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/app/navbar/navbar.component.css -------------------------------------------------------------------------------- /Angular5/src/app/navbar/navbar.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Angular5/src/app/navbar/navbar.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { NavbarComponent } from './navbar.component'; 4 | 5 | describe('NavbarComponent', () => { 6 | let component: NavbarComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ NavbarComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(NavbarComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /Angular5/src/app/navbar/navbar.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { QuizService } from '../shared/quiz.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-navbar', 7 | templateUrl: './navbar.component.html', 8 | styleUrls: ['./navbar.component.css'] 9 | }) 10 | export class NavbarComponent implements OnInit { 11 | 12 | constructor(private quizService : QuizService,private router : Router) { } 13 | 14 | ngOnInit() { 15 | } 16 | 17 | SignOut() { 18 | localStorage.clear(); 19 | clearInterval(this.quizService.timer); 20 | this.router.navigate(['/register']); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Angular5/src/app/quiz/quiz.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/app/quiz/quiz.component.css -------------------------------------------------------------------------------- /Angular5/src/app/quiz/quiz.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | Time Elapsed : {{quizService.displayTimeElapsed()}} 5 |
6 |
7 |
8 |
9 |
10 | {{quizService.qnProgress+1}} 11 |

{{quizService.qns[quizService.qnProgress].Qn}}

12 |
13 | 14 |
15 |
16 |
17 |
    18 | 19 |
  • 20 | {{option}} 21 |
  • 22 |
    23 |
24 |
25 |
26 | 27 |
28 |
-------------------------------------------------------------------------------- /Angular5/src/app/quiz/quiz.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { QuizComponent } from './quiz.component'; 4 | 5 | describe('QuizComponent', () => { 6 | let component: QuizComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ QuizComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(QuizComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /Angular5/src/app/quiz/quiz.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | import { QuizService } from '../shared/quiz.service'; 4 | 5 | @Component({ 6 | selector: 'app-quiz', 7 | templateUrl: './quiz.component.html', 8 | styleUrls: ['./quiz.component.css'] 9 | }) 10 | export class QuizComponent implements OnInit { 11 | 12 | constructor(private router: Router, private quizService: QuizService) { } 13 | 14 | ngOnInit() { 15 | if (parseInt(localStorage.getItem('seconds')) > 0) { 16 | this.quizService.seconds = parseInt(localStorage.getItem('seconds')); 17 | this.quizService.qnProgress = parseInt(localStorage.getItem('qnProgress')); 18 | this.quizService.qns = JSON.parse(localStorage.getItem('qns')); 19 | if (this.quizService.qnProgress == 10) 20 | this.router.navigate(['/result']); 21 | else 22 | this.startTimer(); 23 | } 24 | else { 25 | this.quizService.seconds = 0; 26 | this.quizService.qnProgress = 0; 27 | this.quizService.getQuestions().subscribe( 28 | (data: any) => { 29 | this.quizService.qns = data; 30 | this.startTimer(); 31 | } 32 | ); 33 | } 34 | } 35 | 36 | startTimer() { 37 | this.quizService.timer = setInterval(() => { 38 | this.quizService.seconds++; 39 | localStorage.setItem('seconds', this.quizService.seconds.toString()); 40 | }, 1000); 41 | } 42 | 43 | Answer(qID, choice) { 44 | this.quizService.qns[this.quizService.qnProgress].answer = choice; 45 | localStorage.setItem('qns', JSON.stringify(this.quizService.qns)); 46 | this.quizService.qnProgress++; 47 | localStorage.setItem('qnProgress', this.quizService.qnProgress.toString()); 48 | if (this.quizService.qnProgress == 10) { 49 | clearInterval(this.quizService.timer); 50 | this.router.navigate(['/result']); 51 | } 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Angular5/src/app/register/register.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/app/register/register.component.css -------------------------------------------------------------------------------- /Angular5/src/app/register/register.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

Quiz Registration

6 |
7 |
8 | 9 |
10 |
11 |
12 |
13 |
14 | account_circle 15 | 16 | 17 |
18 |
19 |
20 |
21 | mail_outline 22 | 23 | 24 |
25 |
26 |
27 |
28 | 29 |
30 |
31 |
32 |
33 |
34 |
35 |
-------------------------------------------------------------------------------- /Angular5/src/app/register/register.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { RegisterComponent } from './register.component'; 4 | 5 | describe('RegisterComponent', () => { 6 | let component: RegisterComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ RegisterComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(RegisterComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /Angular5/src/app/register/register.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { QuizService } from '../shared/quiz.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-register', 7 | templateUrl: './register.component.html', 8 | styleUrls: ['./register.component.css'] 9 | }) 10 | export class RegisterComponent implements OnInit { 11 | 12 | emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"; 13 | constructor(private quizService : QuizService,private route : Router) { } 14 | 15 | ngOnInit() { 16 | } 17 | 18 | OnSubmit(name:string,email:string){ 19 | this.quizService.insertParticipant(name,email).subscribe( 20 | (data : any) =>{ 21 | localStorage.clear(); 22 | localStorage.setItem('participant',JSON.stringify(data)); 23 | this.route.navigate(['/quiz']); 24 | } 25 | ); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Angular5/src/app/result/result.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/app/result/result.component.css -------------------------------------------------------------------------------- /Angular5/src/app/result/result.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Completed!

5 |
6 |
7 | 8 |
9 |
10 |
11 |

{{quizService.getParticipantName()}}

12 |

{{quizService.correctAnswerCount}}/10

13 | Time Elapsed : {{quizService.displayTimeElapsed()}} 14 |
15 |
16 | 17 |
18 |
19 | 20 | replay 21 | 22 |
23 | 24 | 25 |

Questions with correct answer

26 | 27 |
28 |
29 | {{i+1}} 30 |

{{qn.Qn}}

31 |
32 | 33 |
34 |
35 | 36 |
37 |
    38 | 39 |
  • 40 | {{option}} 41 | 42 | check_circle 43 | 44 | Incorrect 45 |
  • 46 |
    47 |
48 |
49 |
50 |
51 |
52 |
-------------------------------------------------------------------------------- /Angular5/src/app/result/result.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { ResultComponent } from './result.component'; 4 | 5 | describe('ResultComponent', () => { 6 | let component: ResultComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ ResultComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(ResultComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /Angular5/src/app/result/result.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { QuizService } from '../shared/quiz.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-result', 7 | templateUrl: './result.component.html', 8 | styleUrls: ['./result.component.css'] 9 | }) 10 | export class ResultComponent implements OnInit { 11 | 12 | 13 | 14 | constructor(private quizService: QuizService, private router: Router) { } 15 | 16 | ngOnInit() { 17 | if (parseInt(localStorage.getItem('qnProgress')) == 10) { 18 | this.quizService.seconds = parseInt(localStorage.getItem('seconds')); 19 | this.quizService.qnProgress = parseInt(localStorage.getItem('qnProgress')); 20 | this.quizService.qns = JSON.parse(localStorage.getItem('qns')); 21 | 22 | this.quizService.getAnswers().subscribe( 23 | (data: any) => { 24 | this.quizService.correctAnswerCount = 0; 25 | this.quizService.qns.forEach((e, i) => { 26 | if (e.answer == data[i]) 27 | this.quizService.correctAnswerCount++; 28 | e.correct = data[i]; 29 | }); 30 | } 31 | ); 32 | } 33 | else 34 | this.router.navigate(['/quiz']); 35 | } 36 | 37 | 38 | OnSubmit() { 39 | this.quizService.submitScore().subscribe(() => { 40 | this.restart(); 41 | }); 42 | } 43 | 44 | restart() { 45 | localStorage.setItem('qnProgress', "0"); 46 | localStorage.setItem('qns', ""); 47 | localStorage.setItem('seconds', "0"); 48 | this.router.navigate(['/quiz']); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /Angular5/src/app/routes.ts: -------------------------------------------------------------------------------- 1 | import {Routes} from '@angular/router' 2 | import { RegisterComponent } from './register/register.component'; 3 | import { QuizComponent } from './quiz/quiz.component'; 4 | import { ResultComponent } from './result/result.component'; 5 | import { AuthGuard } from './auth/auth.guard'; 6 | 7 | export const appRoutes : Routes =[ 8 | {path:'register',component:RegisterComponent}, 9 | {path:'quiz',component:QuizComponent,canActivate : [AuthGuard]}, 10 | {path:'result',component:ResultComponent,canActivate : [AuthGuard]}, 11 | {path:'',redirectTo:'/register',pathMatch:'full'} 12 | ]; -------------------------------------------------------------------------------- /Angular5/src/app/shared/quiz.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, inject } from '@angular/core/testing'; 2 | 3 | import { QuizService } from './quiz.service'; 4 | 5 | describe('QuizService', () => { 6 | beforeEach(() => { 7 | TestBed.configureTestingModule({ 8 | providers: [QuizService] 9 | }); 10 | }); 11 | 12 | it('should be created', inject([QuizService], (service: QuizService) => { 13 | expect(service).toBeTruthy(); 14 | })); 15 | }); 16 | -------------------------------------------------------------------------------- /Angular5/src/app/shared/quiz.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { HttpClient } from '@angular/common/http'; 3 | 4 | @Injectable() 5 | export class QuizService { 6 | //---------------- Properties--------------- 7 | readonly rootUrl = 'http://localhost:2690'; 8 | qns: any[]; 9 | seconds: number; 10 | timer; 11 | qnProgress: number; 12 | correctAnswerCount: number = 0; 13 | 14 | //---------------- Helper Methods--------------- 15 | constructor(private http: HttpClient) { } 16 | displayTimeElapsed() { 17 | return Math.floor(this.seconds / 3600) + ':' + Math.floor(this.seconds / 60) + ':' + Math.floor(this.seconds % 60); 18 | } 19 | 20 | getParticipantName() { 21 | var participant = JSON.parse(localStorage.getItem('participant')); 22 | return participant.Name; 23 | } 24 | 25 | 26 | //---------------- Http Methods--------------- 27 | 28 | insertParticipant(name: string, email: string) { 29 | var body = { 30 | Name: name, 31 | Email: email 32 | } 33 | return this.http.post(this.rootUrl + '/api/InsertParticipant', body); 34 | } 35 | 36 | getQuestions() { 37 | return this.http.get(this.rootUrl + '/api/Questions'); 38 | } 39 | 40 | getAnswers() { 41 | var body = this.qns.map(x => x.QnID); 42 | return this.http.post(this.rootUrl + '/api/Answers', body); 43 | } 44 | 45 | submitScore() { 46 | var body = JSON.parse(localStorage.getItem('participant')); 47 | body.Score = this.correctAnswerCount; 48 | body.TimeSpent = this.seconds; 49 | return this.http.post(this.rootUrl + "/api/UpdateOutput", body); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /Angular5/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/assets/.gitkeep -------------------------------------------------------------------------------- /Angular5/src/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/assets/img/logo.png -------------------------------------------------------------------------------- /Angular5/src/assets/img/trophy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/assets/img/trophy.png -------------------------------------------------------------------------------- /Angular5/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Angular5/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /Angular5/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/Angular5/src/favicon.ico -------------------------------------------------------------------------------- /Angular5/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angular5 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Angular5/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.log(err)); 13 | -------------------------------------------------------------------------------- /Angular5/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/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 22 | // import 'core-js/es6/symbol'; 23 | // import 'core-js/es6/object'; 24 | // import 'core-js/es6/function'; 25 | // import 'core-js/es6/parse-int'; 26 | // import 'core-js/es6/parse-float'; 27 | // import 'core-js/es6/number'; 28 | // import 'core-js/es6/math'; 29 | // import 'core-js/es6/string'; 30 | // import 'core-js/es6/date'; 31 | // import 'core-js/es6/array'; 32 | // import 'core-js/es6/regexp'; 33 | // import 'core-js/es6/map'; 34 | // import 'core-js/es6/weak-map'; 35 | // import 'core-js/es6/set'; 36 | 37 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 38 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 39 | 40 | /** IE10 and IE11 requires the following for the Reflect API. */ 41 | // import 'core-js/es6/reflect'; 42 | 43 | 44 | /** Evergreen browsers require these. **/ 45 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. 46 | import 'core-js/es7/reflect'; 47 | 48 | 49 | /** 50 | * Required to support Web Animations `@angular/platform-browser/animations`. 51 | * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation 52 | **/ 53 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 54 | 55 | 56 | 57 | /*************************************************************************************************** 58 | * Zone JS is required by default for Angular itself. 59 | */ 60 | import 'zone.js/dist/zone'; // Included with Angular CLI. 61 | 62 | 63 | 64 | /*************************************************************************************************** 65 | * APPLICATION IMPORTS 66 | */ 67 | -------------------------------------------------------------------------------- /Angular5/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | input.ng-invalid.ng-dirty{ 3 | border-bottom-color : #e91e63 !important; 4 | box-shadow: 0 1px 0 0 #e91e63 !important; 5 | } 6 | 7 | button.btn-submit{ 8 | width: 100%; 9 | } 10 | 11 | ul.answer li:hover{ 12 | background-color: #26a69a; 13 | color: #eafaf9; 14 | cursor: pointer; 15 | } 16 | 17 | ul li.selected{ 18 | background-color: #26a69a !important; 19 | color: #eafaf9 !important; 20 | } -------------------------------------------------------------------------------- /Angular5/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: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /Angular5/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /Angular5/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "types": [ 8 | "jasmine", 9 | "node" 10 | ] 11 | }, 12 | "files": [ 13 | "test.ts" 14 | ], 15 | "include": [ 16 | "**/*.spec.ts", 17 | "**/*.d.ts" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /Angular5/src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | -------------------------------------------------------------------------------- /Angular5/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "sourceMap": true, 6 | "declaration": false, 7 | "moduleResolution": "node", 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "target": "es5", 11 | "typeRoots": [ 12 | "node_modules/@types" 13 | ], 14 | "lib": [ 15 | "es2017", 16 | "dom" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /DBScript.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/DBScript.sql -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Quiz Application with Angular 5 & Web API 2 | This is an Angular 5 Application for Quiz Application with Web APi and SQl Server. 3 | 4 | ## Get the Code 5 | 6 | ``` 7 | $ git clone https://github.com/CodAffection/Angular-5-Quiz-App-With-Web-API.git 8 | $ cd Angular-5-Quiz-App-With-Web-API 9 | $ npm install 10 | //run the app 11 | $ ng serve 12 | //update Web API DB connection string 13 | ``` 14 | 15 | ## How it works ? 16 | 17 | :tv: Video tutorial on this same topic 18 | Url : https://youtu.be/geEWd7mDlTI 19 | 20 | Video Tutorial for Angular 5 CRUD Using Firebase 23 | 24 | 25 | | :bar_chart: | List of Tutorials | | :moneybag: | Support Us | 26 | |--------------------------:|:---------------------|---|---------------------:|:-------------------------------------| 27 | | Angular |http://bit.ly/2KQN9xF | |Paypal | https://goo.gl/bPcyXW | 28 | | Asp.Net Core |http://bit.ly/30fPDMg | |Amazon Affiliate | https://geni.us/JDzpE | 29 | | React |http://bit.ly/325temF | | 30 | | Python |http://bit.ly/2ws4utg | | :point_right: | Follow Us | 31 | | Node.js |https://goo.gl/viJcFs | |Website |http://www.codaffection.com | 32 | | Asp.Net MVC |https://goo.gl/gvjUJ7 | |YouTube |https://www.youtube.com/codaffection | 33 | | Flutter |https://bit.ly/3ggmmJz| |Facebook |https://www.facebook.com/codaffection | 34 | | Web API |https://goo.gl/itVayJ | |Twitter |https://twitter.com/CodAffection | 35 | | MEAN Stack |https://goo.gl/YJPPAH | | 36 | | C# Tutorial |https://goo.gl/s1zJxo | | 37 | | Asp.Net WebForm |https://goo.gl/GXC2aJ | | 38 | | C# WinForm |https://goo.gl/vHS9Hd | | 39 | | MS SQL |https://goo.gl/MLYS9e | | 40 | | Crystal Report |https://goo.gl/5Vou7t | | 41 | | CG Exercises in C Program |https://goo.gl/qEWJCs | | 42 | 43 | -------------------------------------------------------------------------------- /Structure of Angular Project.txt: -------------------------------------------------------------------------------- 1 | ● src 2 | +---● app 3 | | | 4 | | +--● register 5 | | | |--register.component.ts|.html|.css 6 | | | 7 | | +--● navbar 8 | | | |--navbar.component.ts|.html|.css 9 | | | 10 | | +--● quiz 11 | | | |--quiz.component.ts|.html|.css 12 | | | 13 | | +--● result 14 | | | |--result.component.ts|.html|.css 15 | | | 16 | | +--● shared 17 | | |--quiz.service.ts 18 | | 19 | |---● routes.ts 20 | | 21 | +---● auth 22 | | |--auth.guard.ts -------------------------------------------------------------------------------- /WebAPI/WebAPI.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebAPI", "WebAPI\WebAPI.csproj", "{519B58BB-D39C-4473-A74A-347F0AACAAC2}" 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 | {519B58BB-D39C-4473-A74A-347F0AACAAC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {519B58BB-D39C-4473-A74A-347F0AACAAC2}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {519B58BB-D39C-4473-A74A-347F0AACAAC2}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {519B58BB-D39C-4473-A74A-347F0AACAAC2}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WebAPI/WebAPI.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI.v12.suo -------------------------------------------------------------------------------- /WebAPI/WebAPI/App_Start/BundleConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Optimization; 3 | 4 | namespace WebAPI 5 | { 6 | public class BundleConfig 7 | { 8 | // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 9 | public static void RegisterBundles(BundleCollection bundles) 10 | { 11 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include( 12 | "~/Scripts/jquery-{version}.js")); 13 | 14 | // Use the development version of Modernizr to develop with and learn from. Then, when you're 15 | // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. 16 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( 17 | "~/Scripts/modernizr-*")); 18 | 19 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( 20 | "~/Scripts/bootstrap.js", 21 | "~/Scripts/respond.js")); 22 | 23 | bundles.Add(new StyleBundle("~/Content/css").Include( 24 | "~/Content/bootstrap.css", 25 | "~/Content/site.css")); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace WebAPI 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace WebAPI 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web.Http; 5 | using System.Web.Http.Cors; 6 | 7 | namespace WebAPI 8 | { 9 | public static class WebApiConfig 10 | { 11 | public static void Register(HttpConfiguration config) 12 | { 13 | // Web API configuration and services 14 | 15 | config.EnableCors(new EnableCorsAttribute("http://localhost:4200", headers: "*", methods: "*")); 16 | 17 | // Web API routes 18 | config.MapHttpAttributeRoutes(); 19 | 20 | config.Routes.MapHttpRoute( 21 | name: "DefaultApi", 22 | routeTemplate: "api/{controller}/{id}", 23 | defaults: new { id = RouteParameter.Optional } 24 | ); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/ApiDescriptionExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Web; 4 | using System.Web.Http.Description; 5 | 6 | namespace WebAPI.Areas.HelpPage 7 | { 8 | public static class ApiDescriptionExtensions 9 | { 10 | /// 11 | /// Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}" 12 | /// 13 | /// The . 14 | /// The ID as a string. 15 | public static string GetFriendlyId(this ApiDescription description) 16 | { 17 | string path = description.RelativePath; 18 | string[] urlParts = path.Split('?'); 19 | string localPath = urlParts[0]; 20 | string queryKeyString = null; 21 | if (urlParts.Length > 1) 22 | { 23 | string query = urlParts[1]; 24 | string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys; 25 | queryKeyString = String.Join("_", queryKeys); 26 | } 27 | 28 | StringBuilder friendlyPath = new StringBuilder(); 29 | friendlyPath.AppendFormat("{0}-{1}", 30 | description.HttpMethod.Method, 31 | localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty)); 32 | if (queryKeyString != null) 33 | { 34 | friendlyPath.AppendFormat("_{0}", queryKeyString); 35 | } 36 | return friendlyPath.ToString(); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/App_Start/HelpPageConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Net.Http.Headers; 4 | using System.Web; 5 | using System.Web.Http; 6 | 7 | namespace WebAPI.Areas.HelpPage 8 | { 9 | /// 10 | /// Use this class to customize the Help Page. 11 | /// For example you can set a custom to supply the documentation 12 | /// or you can provide the samples for the requests/responses. 13 | /// 14 | public static class HelpPageConfig 15 | { 16 | public static void Register(HttpConfiguration config) 17 | { 18 | //// Uncomment the following to use the documentation from XML documentation file. 19 | //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml"))); 20 | 21 | //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type. 22 | //// Also, the string arrays will be used for IEnumerable. The sample objects will be serialized into different media type 23 | //// formats by the available formatters. 24 | //config.SetSampleObjects(new Dictionary 25 | //{ 26 | // {typeof(string), "sample string"}, 27 | // {typeof(IEnumerable), new string[]{"sample 1", "sample 2"}} 28 | //}); 29 | 30 | //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format 31 | //// and have IEnumerable as the body parameter or return type. 32 | //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable)); 33 | 34 | //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values" 35 | //// and action named "Put". 36 | //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put"); 37 | 38 | //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png" 39 | //// on the controller named "Values" and action named "Get" with parameter "id". 40 | //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id"); 41 | 42 | //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent. 43 | //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter. 44 | //config.SetActualRequestType(typeof(string), "Values", "Get"); 45 | 46 | //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent. 47 | //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string. 48 | //config.SetActualResponseType(typeof(string), "Values", "Post"); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Controllers/HelpController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Http; 3 | using System.Web.Mvc; 4 | using WebAPI.Areas.HelpPage.Models; 5 | 6 | namespace WebAPI.Areas.HelpPage.Controllers 7 | { 8 | /// 9 | /// The controller that will handle requests for the help page. 10 | /// 11 | public class HelpController : Controller 12 | { 13 | public HelpController() 14 | : this(GlobalConfiguration.Configuration) 15 | { 16 | } 17 | 18 | public HelpController(HttpConfiguration config) 19 | { 20 | Configuration = config; 21 | } 22 | 23 | public HttpConfiguration Configuration { get; private set; } 24 | 25 | public ActionResult Index() 26 | { 27 | ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider(); 28 | return View(Configuration.Services.GetApiExplorer().ApiDescriptions); 29 | } 30 | 31 | public ActionResult Api(string apiId) 32 | { 33 | if (!String.IsNullOrEmpty(apiId)) 34 | { 35 | HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId); 36 | if (apiModel != null) 37 | { 38 | return View(apiModel); 39 | } 40 | } 41 | 42 | return View("Error"); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/HelpPage.css: -------------------------------------------------------------------------------- 1 | pre.wrapped { 2 | white-space: -moz-pre-wrap; 3 | white-space: -pre-wrap; 4 | white-space: -o-pre-wrap; 5 | white-space: pre-wrap; 6 | } 7 | 8 | .warning-message-container { 9 | margin-top: 20px; 10 | padding: 0 10px; 11 | color: #525252; 12 | background: #EFDCA9; 13 | border: 1px solid #CCCCCC; 14 | } 15 | 16 | .help-page-table { 17 | width: 100%; 18 | border-collapse: collapse; 19 | text-align: left; 20 | margin: 0px 0px 20px 0px; 21 | border-top: 2px solid #D4D4D4; 22 | } 23 | 24 | .help-page-table th { 25 | text-align: left; 26 | font-weight: bold; 27 | border-bottom: 2px solid #D4D4D4; 28 | padding: 8px 6px 8px 6px; 29 | } 30 | 31 | .help-page-table td { 32 | border-bottom: 2px solid #D4D4D4; 33 | padding: 15px 8px 15px 8px; 34 | vertical-align: top; 35 | } 36 | 37 | .help-page-table pre, .help-page-table p { 38 | margin: 0px; 39 | padding: 0px; 40 | font-family: inherit; 41 | font-size: 100%; 42 | } 43 | 44 | .help-page-table tbody tr:hover td { 45 | background-color: #F3F3F3; 46 | } 47 | 48 | a:hover { 49 | background-color: transparent; 50 | } 51 | 52 | .sample-header { 53 | border: 2px solid #D4D4D4; 54 | background: #76B8DB; 55 | color: #FFFFFF; 56 | padding: 8px 15px; 57 | border-bottom: none; 58 | display: inline-block; 59 | margin: 10px 0px 0px 0px; 60 | } 61 | 62 | .sample-content { 63 | display: block; 64 | border-width: 0; 65 | padding: 15px 20px; 66 | background: #FFFFFF; 67 | border: 2px solid #D4D4D4; 68 | margin: 0px 0px 10px 0px; 69 | } 70 | 71 | .api-name { 72 | width: 40%; 73 | } 74 | 75 | .api-documentation { 76 | width: 60%; 77 | } 78 | 79 | .parameter-name { 80 | width: 20%; 81 | } 82 | 83 | .parameter-documentation { 84 | width: 50%; 85 | } 86 | 87 | .parameter-source { 88 | width: 30%; 89 | } 90 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace WebAPI.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Models/HelpPageApiModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | using System.Net.Http.Headers; 4 | using System.Web.Http.Description; 5 | 6 | namespace WebAPI.Areas.HelpPage.Models 7 | { 8 | /// 9 | /// The model that represents an API displayed on the help page. 10 | /// 11 | public class HelpPageApiModel 12 | { 13 | /// 14 | /// Initializes a new instance of the class. 15 | /// 16 | public HelpPageApiModel() 17 | { 18 | SampleRequests = new Dictionary(); 19 | SampleResponses = new Dictionary(); 20 | ErrorMessages = new Collection(); 21 | } 22 | 23 | /// 24 | /// Gets or sets the that describes the API. 25 | /// 26 | public ApiDescription ApiDescription { get; set; } 27 | 28 | /// 29 | /// Gets the sample requests associated with the API. 30 | /// 31 | public IDictionary SampleRequests { get; private set; } 32 | 33 | /// 34 | /// Gets the sample responses associated with the API. 35 | /// 36 | public IDictionary SampleResponses { get; private set; } 37 | 38 | /// 39 | /// Gets the error messages associated with this model. 40 | /// 41 | public Collection ErrorMessages { get; private set; } 42 | } 43 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/ImageSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPI.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. 7 | /// 8 | public class ImageSample 9 | { 10 | /// 11 | /// Initializes a new instance of the class. 12 | /// 13 | /// The URL of an image. 14 | public ImageSample(string src) 15 | { 16 | if (src == null) 17 | { 18 | throw new ArgumentNullException("src"); 19 | } 20 | Src = src; 21 | } 22 | 23 | public string Src { get; private set; } 24 | 25 | public override bool Equals(object obj) 26 | { 27 | ImageSample other = obj as ImageSample; 28 | return other != null && Src == other.Src; 29 | } 30 | 31 | public override int GetHashCode() 32 | { 33 | return Src.GetHashCode(); 34 | } 35 | 36 | public override string ToString() 37 | { 38 | return Src; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/InvalidSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPI.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. 7 | /// 8 | public class InvalidSample 9 | { 10 | public InvalidSample(string errorMessage) 11 | { 12 | if (errorMessage == null) 13 | { 14 | throw new ArgumentNullException("errorMessage"); 15 | } 16 | ErrorMessage = errorMessage; 17 | } 18 | 19 | public string ErrorMessage { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | InvalidSample other = obj as InvalidSample; 24 | return other != null && ErrorMessage == other.ErrorMessage; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return ErrorMessage.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return ErrorMessage; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/SampleDirection.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPI.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/TextSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPI.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. 7 | /// 8 | public class TextSample 9 | { 10 | public TextSample(string text) 11 | { 12 | if (text == null) 13 | { 14 | throw new ArgumentNullException("text"); 15 | } 16 | Text = text; 17 | } 18 | 19 | public string Text { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | TextSample other = obj as TextSample; 24 | return other != null && Text == other.Text; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return Text.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Text; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/Api.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using WebAPI.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 |
11 | 18 |
19 | @Html.DisplayFor(m => Model) 20 |
21 |
22 | 23 | @section Scripts { 24 | 25 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using WebAPI.Areas.HelpPage 5 | @using WebAPI.Areas.HelpPage.Models 6 | @model IGrouping 7 | 8 | @{ 9 | var controllerDocumentation = ViewBag.DocumentationProvider != null ? 10 | ViewBag.DocumentationProvider.GetDocumentation(Model.Key) : 11 | null; 12 | } 13 | 14 |

@Model.Key.ControllerName

15 | @if (!String.IsNullOrEmpty(controllerDocumentation)) 16 | { 17 |

@controllerDocumentation

18 | } 19 | 20 | 21 | 22 | 23 | 24 | @foreach (var api in Model) 25 | { 26 | 27 | 28 | 38 | 39 | } 40 | 41 |
APIDescription
@api.HttpMethod.Method @api.RelativePath 29 | @if (api.Documentation != null) 30 | { 31 |

@api.Documentation

32 | } 33 | else 34 | { 35 |

No documentation available.

36 | } 37 |
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using WebAPI.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | bool hasParameters = description.ParameterDescriptions.Count > 0; 8 | bool hasRequestSamples = Model.SampleRequests.Count > 0; 9 | bool hasResponseSamples = Model.SampleResponses.Count > 0; 10 | } 11 |

@description.HttpMethod.Method @description.RelativePath

12 |
13 | @if (description.Documentation != null) 14 | { 15 |

@description.Documentation

16 | } 17 | else 18 | { 19 |

No documentation available.

20 | } 21 | 22 | @if (hasParameters || hasRequestSamples) 23 | { 24 |

Request Information

25 | if (hasParameters) 26 | { 27 |

Parameters

28 | @Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters") 29 | } 30 | if (hasRequestSamples) 31 | { 32 |

Request body formats

33 | @Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples") 34 | } 35 | } 36 | 37 | @if (hasResponseSamples) 38 | { 39 |

Response Information

40 | if (description.ResponseDescription.Documentation != null) 41 | { 42 |

@description.ResponseDescription.Documentation

43 | } 44 | else 45 | { 46 |

No documentation available.

47 | } 48 |

Response body formats

49 | @Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples") 50 | } 51 |
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPI.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPI.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Collections.ObjectModel 2 | @using System.Web.Http.Description 3 | @using System.Threading 4 | @model Collection 5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (ApiParameterDescription parameter in Model) 12 | { 13 | string parameterDocumentation = parameter.Documentation != null ? 14 | parameter.Documentation : 15 | "No documentation available."; 16 | 17 | // Don't show CancellationToken because it's a special parameter 18 | if (parameter.ParameterDescriptor == null || 19 | (parameter.ParameterDescriptor != null && 20 | !typeof(CancellationToken).IsAssignableFrom(parameter.ParameterDescriptor.ParameterType))) 21 | { 22 | 23 | 24 | 25 | 40 | 41 | } 42 | } 43 | 44 |
NameDescriptionAdditional information
@parameter.Name
@parameterDocumentation
26 | @switch (parameter.Source) 27 | { 28 | case ApiParameterSource.FromBody: 29 |

Define this parameter in the request body.

30 | break; 31 | case ApiParameterSource.FromUri: 32 |

Define this parameter in the request URI.

33 | break; 34 | case ApiParameterSource.Unknown: 35 | default: 36 |

None.

37 | break; 38 | } 39 |
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Net.Http.Headers 2 | @model Dictionary 3 | 4 | @{ 5 | // Group the samples into a single tab if they are the same. 6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary( 7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()), 8 | pair => pair.Key); 9 | var mediaTypes = samples.Keys; 10 | } 11 |
12 | @foreach (var mediaType in mediaTypes) 13 | { 14 |

@mediaType

15 |
16 | Sample: 17 | @{ 18 | var sample = samples[mediaType]; 19 | if (sample == null) 20 | { 21 |

Sample not available.

22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |
29 | } 30 |
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPI.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Help/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using System.Collections.ObjectModel 5 | @using WebAPI.Areas.HelpPage.Models 6 | @model Collection 7 | 8 | @{ 9 | ViewBag.Title = "ASP.NET Web API Help Page"; 10 | 11 | // Group APIs by controller 12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor); 13 | } 14 | 15 |
16 |
17 |
18 |

@ViewBag.Title

19 |
20 |
21 |
22 |
23 | 31 |
32 | @foreach (var group in apiGroups) 33 | { 34 | @Html.DisplayFor(m => group, "ApiGroup") 35 | } 36 |
37 |
38 | 39 | @section Scripts { 40 | 41 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 43 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages 3 | Layout = "~/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | 19 | /* styles for validation helpers */ 20 | .field-validation-error { 21 | color: #b94a48; 22 | } 23 | 24 | .field-validation-valid { 25 | display: none; 26 | } 27 | 28 | input.input-validation-error { 29 | border: 1px solid #b94a48; 30 | } 31 | 32 | input[type="checkbox"].input-validation-error { 33 | border: 0 none; 34 | } 35 | 36 | .validation-summary-errors { 37 | color: #b94a48; 38 | } 39 | 40 | .validation-summary-valid { 41 | display: none; 42 | } -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace WebAPI.Controllers 8 | { 9 | public class HomeController : Controller 10 | { 11 | public ActionResult Index() 12 | { 13 | ViewBag.Title = "Home Page"; 14 | 15 | return View(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/ParticipantController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | using WebAPI.Models; 8 | 9 | namespace WebAPI.Controllers 10 | { 11 | public class ParticipantController : ApiController 12 | { 13 | [HttpPost] 14 | [Route("api/InsertParticipant")] 15 | public Participant Insert(Participant model) 16 | { 17 | using (DBModel db = new DBModel()) 18 | { 19 | db.Participants.Add(model); 20 | db.SaveChanges(); 21 | return model; 22 | } 23 | } 24 | 25 | [HttpPost] 26 | [Route("api/UpdateOutput")] 27 | public void UpdateOutput(Participant model) 28 | { 29 | using (DBModel db = new DBModel()) 30 | { 31 | db.Entry(model).State = System.Data.EntityState.Modified; 32 | db.SaveChanges(); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/QuizController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | using WebAPI.Models; 8 | 9 | namespace WebAPI.Controllers 10 | { 11 | public class QuizController : ApiController 12 | { 13 | [HttpGet] 14 | [Route("api/Questions")] 15 | public HttpResponseMessage GetQuestions() { 16 | using (DBModel db = new DBModel()) 17 | { 18 | var Qns = db.Questions 19 | .Select(x => new { QnID = x.QnID, Qn = x.Qn, ImageName = x.ImageName, x.Option1, x.Option2, x.Option3, x.Option4 }) 20 | .OrderBy(y => Guid.NewGuid()) 21 | .Take(10) 22 | .ToArray(); 23 | var updated = Qns.AsEnumerable() 24 | .Select(x => new 25 | { 26 | QnID = x.QnID, 27 | Qn = x.Qn, 28 | ImageName = x.ImageName, 29 | Options = new string[] { x.Option1, x.Option2, x.Option3, x.Option4 } 30 | }).ToList(); 31 | return this.Request.CreateResponse(HttpStatusCode.OK, updated); 32 | } 33 | } 34 | 35 | [HttpPost] 36 | [Route("api/Answers")] 37 | public HttpResponseMessage GetAnswers(int[] qIDs) { 38 | using (DBModel db = new DBModel()) 39 | { 40 | var result = db.Questions 41 | .AsEnumerable() 42 | .Where(y => qIDs.Contains(y.QnID)) 43 | .OrderBy(x => { return Array.IndexOf(qIDs, x.QnID); }) 44 | .Select(z => z.Answer) 45 | .ToArray(); 46 | return this.Request.CreateResponse(HttpStatusCode.OK, result); 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | 8 | namespace WebAPI.Controllers 9 | { 10 | public class ValuesController : ApiController 11 | { 12 | // GET api/values 13 | public IEnumerable Get() 14 | { 15 | return new string[] { "value1", "value2" }; 16 | } 17 | 18 | // GET api/values/5 19 | public string Get(int id) 20 | { 21 | return "value"; 22 | } 23 | 24 | // POST api/values 25 | public void Post([FromBody]string value) 26 | { 27 | } 28 | 29 | // PUT api/values/5 30 | public void Put(int id, [FromBody]string value) 31 | { 32 | } 33 | 34 | // DELETE api/values/5 35 | public void Delete(int id) 36 | { 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebAPI.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | 10 | namespace WebAPI 11 | { 12 | public class WebApiApplication : System.Web.HttpApplication 13 | { 14 | protected void Application_Start() 15 | { 16 | AreaRegistration.RegisterAllAreas(); 17 | GlobalConfiguration.Configure(WebApiConfig.Register); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | 22 | GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings 23 | .ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore; 24 | GlobalConfiguration.Configuration.Formatters 25 | .Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Images/q16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/Images/q16.jpg -------------------------------------------------------------------------------- /WebAPI/WebAPI/Images/q17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/Images/q17.png -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/DBModels.Context.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WebAPI.Models 11 | { 12 | using System; 13 | using System.Data.Entity; 14 | using System.Data.Entity.Infrastructure; 15 | 16 | public partial class DBModel : DbContext 17 | { 18 | public DBModel() 19 | : base("name=DBModel") 20 | { 21 | } 22 | 23 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 24 | { 25 | throw new UnintentionalCodeFirstException(); 26 | } 27 | 28 | public DbSet Questions { get; set; } 29 | public DbSet Participants { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/DBModels.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Quiz App\Project\WebAPI\WebAPI\Models\DBModels.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/DBModels.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/DBModels.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/Participant.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WebAPI.Models 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class Participant 16 | { 17 | public int ParticipantID { get; set; } 18 | public string Name { get; set; } 19 | public string Email { get; set; } 20 | public Nullable Score { get; set; } 21 | public Nullable TimeSpent { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Models/Question.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WebAPI.Models 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class Question 16 | { 17 | public int QnID { get; set; } 18 | public string Qn { get; set; } 19 | public string ImageName { get; set; } 20 | public string Option1 { get; set; } 21 | public string Option2 { get; set; } 22 | public string Option3 { get; set; } 23 | public string Option4 { get; set; } 24 | public Nullable Answer { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("WebAPI")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("WebAPI")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("69b95869-a764-4a1f-addb-13ab8190d690")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/Scripts/_references.js -------------------------------------------------------------------------------- /WebAPI/WebAPI/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | 
2 |

ASP.NET

3 |

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.

4 |

Learn more »

5 |
6 |
7 |
8 |

Getting started

9 |

ASP.NET Web API is a framework that makes it easy to build HTTP services that reach 10 | a broad range of clients, including browsers and mobile devices. ASP.NET Web API 11 | is an ideal platform for building RESTful applications on the .NET Framework.

12 |

Learn more »

13 |
14 |
15 |

Get more libraries

16 |

NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.

17 |

Learn more »

18 |
19 |
20 |

Web Hosting

21 |

You can easily find a web hosting company that offers the right mix of features and price for your applications.

22 |

Learn more »

23 |
24 |
25 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 5 | 6 | 7 | 8 | 9 | Error 10 | 11 | 12 |
13 |

Error.

14 |

An error occurred while processing your request.

15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @Styles.Render("~/Content/css") 8 | @Scripts.Render("~/bundles/modernizr") 9 | 10 | 11 | 29 |
30 | @RenderBody() 31 |
32 |
33 |

© @DateTime.Now.Year - My ASP.NET Application

34 |
35 |
36 | 37 | @Scripts.Render("~/bundles/jquery") 38 | @Scripts.Render("~/bundles/bootstrap") 39 | @RenderSection("scripts", required: false) 40 | 41 | 42 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Views/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Web.Debug.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Web.Release.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/WebAPI.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | False 6 | True 7 | 8 | ProjectFiles 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | CurrentPage 17 | True 18 | False 19 | False 20 | False 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | True 30 | True 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Antlr3.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/Antlr3.Runtime.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Antlr3.Runtime.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/Antlr3.Runtime.pdb -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/EntityFramework.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Microsoft.Web.Infrastructure.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/Microsoft.Web.Infrastructure.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Cors.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Cors.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Helpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Helpers.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Http.Cors.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Http.Cors.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Http.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Mvc.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Optimization.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Optimization.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.Razor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.Razor.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.WebPages.Deployment.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.WebPages.Deployment.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.WebPages.Razor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.WebPages.Razor.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/System.Web.WebPages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/System.Web.WebPages.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/WebAPI.dll.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/WebAPI/bin/WebGrease.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/bin/WebGrease.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/favicon.ico -------------------------------------------------------------------------------- /WebAPI/WebAPI/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebAPI/WebAPI/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebAPI/WebAPI/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.Designer.cs.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.cs.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/WebAPI.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/WebAPI.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/WebAPI/obj/Debug/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.csdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.msl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.ssdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /WebAPI/WebAPI/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Antlr 5 | 3.4.1.9004 6 | Terence Parr 7 | Terence Parr 8 | false 9 | ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages. 10 | ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages. 11 | en-US 12 | 13 | -------------------------------------------------------------------------------- /WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.dll -------------------------------------------------------------------------------- /WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.pdb -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/Content/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/Content/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | EntityFramework 5 | 5.0.0 6 | Microsoft 7 | Microsoft 8 | http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409 9 | http://go.microsoft.com/fwlink/?LinkId=253891&clcid=0x409 10 | true 11 | Entity Framework is Microsoft's recommended data access technology for new applications. 12 | Entity Framework is Microsoft's recommended data access technology for new applications. 13 | en-US 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PS3.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PS3.psd1 -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.Utility.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.Utility.dll -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.dll -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.psd1 -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/Redirect.VS11.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/Redirect.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/about_EntityFramework.help.txt: -------------------------------------------------------------------------------- 1 | TOPIC 2 | about_EntityFramework 3 | 4 | SHORT DESCRIPTION 5 | Provides information about Entity Framework commands. 6 | 7 | LONG DESCRIPTION 8 | This topic describes the Entity Framework commands. Entity Framework is 9 | Microsoft's recommended data access technology for new applications. 10 | 11 | 12 | The following Entity Framework cmdlets are included. 13 | 14 | Cmdlet Description 15 | ----------------- --------------------------------------------------- 16 | Enable-Migrations Enables Code First Migrations in a project. 17 | 18 | Add-Migration Scaffolds a migration script for any pending model 19 | changes. 20 | 21 | Update-Database Applies any pending migrations to the database. 22 | 23 | Get-Migrations Displays the migrations that have been applied to 24 | the target database. 25 | 26 | SEE ALSO 27 | Enable-Migrations 28 | Add-Migration 29 | Update-Database 30 | Get-Migrations 31 | -------------------------------------------------------------------------------- /WebAPI/packages/EntityFramework.5.0.0/tools/migrate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/EntityFramework.5.0.0/tools/migrate.exe -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.Cors 5 | 5.2.4 6 | Microsoft ASP.NET Cross-Origin Support 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package contains the core components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET. 14 | This package contains the core components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet Cors Cross Origin 19 | 20 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/lib/net45/System.Web.Cors.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/lib/net45/System.Web.Cors.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.Mvc 5 | 5.0.0 6 | Microsoft ASP.NET MVC 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm 10 | http://www.asp.net/mvc 11 | true 12 | This package contains the runtime assemblies for ASP.NET MVC. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup. 13 | This package contains the runtime assemblies for ASP.NET MVC. 14 | © Microsoft Corporation. All rights reserved. 15 | en-US 16 | Microsoft AspNet Mvc AspNetMvc 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/lib/net45/System.Web.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/lib/net45/System.Web.Mvc.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.Razor 5 | 3.0.0 6 | Microsoft ASP.NET Razor 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm 10 | http://www.asp.net/web-pages 11 | true 12 | This package contains the runtime assemblies for ASP.NET Web Pages. ASP.NET Web Pages and the new Razor syntax provide a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content. 13 | This package contains the runtime assemblies for ASP.NET Web Pages. 14 | © Microsoft Corporation. All rights reserved. 15 | en-US 16 | Microsoft AspNet WebPages AspNetWebPages Razor 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/lib/net45/System.Web.Razor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/lib/net45/System.Web.Razor.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.Web.Optimization 5 | 1.1.1 6 | Microsoft ASP.NET Web Optimization Framework 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm 10 | true 11 | ASP.NET Optimization introduces a way to bundle and optimize CSS and JavaScript files. 12 | ASP.NET Optimization introduces a way to bundle and optimize CSS and JavaScript files. 13 | © Microsoft Corporation. All rights reserved. 14 | Microsoft AspNet optimization bundling minification 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/lib/net40/System.Web.Optimization.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/lib/net40/System.Web.Optimization.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.5.2.4/Microsoft.AspNet.WebApi.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.5.2.4/Microsoft.AspNet.WebApi.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.5.2.4/Microsoft.AspNet.WebApi.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi 5 | 5.2.4 6 | Microsoft ASP.NET Web API 2.2 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package contains everything you need to host ASP.NET Web API on IIS. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. 14 | This package contains everything you need to host ASP.NET Web API on IIS. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet WebApi AspNetWebApi 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi.Client 5 | 5.2.4 6 | Microsoft ASP.NET Web API 2.2 Client Libraries 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data. 14 | This package adds support for formatting and content negotiation to System.Net.Http. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet WebApi AspNetWebApi HttpClient 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/net45/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/net45/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/netstandard2.0/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/netstandard2.0/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Content/web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi.Core 5 | 5.2.4 6 | Microsoft ASP.NET Web API 2.2 Core Libraries 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package contains the core runtime assemblies for ASP.NET Web API. This package is used by hosts of the ASP.NET Web API runtime. To host a Web API in IIS use the Microsoft.AspNet.WebApi.WebHost package. To host a Web API in your own process use the Microsoft.AspNet.WebApi.SelfHost package. 14 | This package contains the core runtime assemblies for ASP.NET Web API. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet WebApi AspNetWebApi 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/lib/net45/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/lib/net45/System.Web.Http.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi.Cors 5 | 5.2.4 6 | Microsoft ASP.NET Web API 2.2 Cross-Origin Support 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package contains the components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET Web API. 14 | This package contains the components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET Web API. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet WebApi AspNetWebApi Cors Cross Origin 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/lib/net45/System.Web.Http.Cors.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/lib/net45/System.Web.Http.Cors.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi.HelpPage 5 | 5.0.0 6 | Microsoft ASP.NET Web API Help Page 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm 10 | http://www.asp.net/web-api 11 | true 12 | The ASP.NET Web API Help Page automatically generates help page content for the web APIs on your site. Visitors to your help page can use this content to learn how to call your web APIs. Everything generated by the help page is fully customizable using ASP.NET MVC and Razor. ASP.NET Web API Help Page is a great addition to any ASP.NET Web API project. 13 | The ASP.NET Web API Help Page automatically generates help page content for the web APIs on your site. 14 | © Microsoft Corporation. All rights reserved. 15 | en-US 16 | Microsoft AspNet WebApi AspNetWebApi HelpPage 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/ApiDescriptionExtensions.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Web; 4 | using System.Web.Http.Description; 5 | 6 | namespace $rootnamespace$.Areas.HelpPage 7 | { 8 | public static class ApiDescriptionExtensions 9 | { 10 | /// 11 | /// Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}" 12 | /// 13 | /// The . 14 | /// The ID as a string. 15 | public static string GetFriendlyId(this ApiDescription description) 16 | { 17 | string path = description.RelativePath; 18 | string[] urlParts = path.Split('?'); 19 | string localPath = urlParts[0]; 20 | string queryKeyString = null; 21 | if (urlParts.Length > 1) 22 | { 23 | string query = urlParts[1]; 24 | string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys; 25 | queryKeyString = String.Join("_", queryKeys); 26 | } 27 | 28 | StringBuilder friendlyPath = new StringBuilder(); 29 | friendlyPath.AppendFormat("{0}-{1}", 30 | description.HttpMethod.Method, 31 | localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty)); 32 | if (queryKeyString != null) 33 | { 34 | friendlyPath.AppendFormat("_{0}", queryKeyString); 35 | } 36 | return friendlyPath.ToString(); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/App_Start/HelpPageConfig.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Net.Http.Headers; 4 | using System.Web; 5 | using System.Web.Http; 6 | 7 | namespace $rootnamespace$.Areas.HelpPage 8 | { 9 | /// 10 | /// Use this class to customize the Help Page. 11 | /// For example you can set a custom to supply the documentation 12 | /// or you can provide the samples for the requests/responses. 13 | /// 14 | public static class HelpPageConfig 15 | { 16 | public static void Register(HttpConfiguration config) 17 | { 18 | //// Uncomment the following to use the documentation from XML documentation file. 19 | //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml"))); 20 | 21 | //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type. 22 | //// Also, the string arrays will be used for IEnumerable. The sample objects will be serialized into different media type 23 | //// formats by the available formatters. 24 | //config.SetSampleObjects(new Dictionary 25 | //{ 26 | // {typeof(string), "sample string"}, 27 | // {typeof(IEnumerable), new string[]{"sample 1", "sample 2"}} 28 | //}); 29 | 30 | //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format 31 | //// and have IEnumerable as the body parameter or return type. 32 | //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable)); 33 | 34 | //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values" 35 | //// and action named "Put". 36 | //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put"); 37 | 38 | //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png" 39 | //// on the controller named "Values" and action named "Get" with parameter "id". 40 | //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id"); 41 | 42 | //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent. 43 | //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter. 44 | //config.SetActualRequestType(typeof(string), "Values", "Get"); 45 | 46 | //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent. 47 | //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string. 48 | //config.SetActualResponseType(typeof(string), "Values", "Post"); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Controllers/HelpController.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Http; 3 | using System.Web.Mvc; 4 | using $rootnamespace$.Areas.HelpPage.Models; 5 | 6 | namespace $rootnamespace$.Areas.HelpPage.Controllers 7 | { 8 | /// 9 | /// The controller that will handle requests for the help page. 10 | /// 11 | public class HelpController : Controller 12 | { 13 | public HelpController() 14 | : this(GlobalConfiguration.Configuration) 15 | { 16 | } 17 | 18 | public HelpController(HttpConfiguration config) 19 | { 20 | Configuration = config; 21 | } 22 | 23 | public HttpConfiguration Configuration { get; private set; } 24 | 25 | public ActionResult Index() 26 | { 27 | ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider(); 28 | return View(Configuration.Services.GetApiExplorer().ApiDescriptions); 29 | } 30 | 31 | public ActionResult Api(string apiId) 32 | { 33 | if (!String.IsNullOrEmpty(apiId)) 34 | { 35 | HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId); 36 | if (apiModel != null) 37 | { 38 | return View(apiModel); 39 | } 40 | } 41 | 42 | return View("Error"); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/HelpPage.css.pp: -------------------------------------------------------------------------------- 1 | pre.wrapped { 2 | white-space: -moz-pre-wrap; 3 | white-space: -pre-wrap; 4 | white-space: -o-pre-wrap; 5 | white-space: pre-wrap; 6 | } 7 | 8 | .warning-message-container { 9 | margin-top: 20px; 10 | padding: 0 10px; 11 | color: #525252; 12 | background: #EFDCA9; 13 | border: 1px solid #CCCCCC; 14 | } 15 | 16 | .help-page-table { 17 | width: 100%; 18 | border-collapse: collapse; 19 | text-align: left; 20 | margin: 0px 0px 20px 0px; 21 | border-top: 2px solid #D4D4D4; 22 | } 23 | 24 | .help-page-table th { 25 | text-align: left; 26 | font-weight: bold; 27 | border-bottom: 2px solid #D4D4D4; 28 | padding: 8px 6px 8px 6px; 29 | } 30 | 31 | .help-page-table td { 32 | border-bottom: 2px solid #D4D4D4; 33 | padding: 15px 8px 15px 8px; 34 | vertical-align: top; 35 | } 36 | 37 | .help-page-table pre, .help-page-table p { 38 | margin: 0px; 39 | padding: 0px; 40 | font-family: inherit; 41 | font-size: 100%; 42 | } 43 | 44 | .help-page-table tbody tr:hover td { 45 | background-color: #F3F3F3; 46 | } 47 | 48 | a:hover { 49 | background-color: transparent; 50 | } 51 | 52 | .sample-header { 53 | border: 2px solid #D4D4D4; 54 | background: #76B8DB; 55 | color: #FFFFFF; 56 | padding: 8px 15px; 57 | border-bottom: none; 58 | display: inline-block; 59 | margin: 10px 0px 0px 0px; 60 | } 61 | 62 | .sample-content { 63 | display: block; 64 | border-width: 0; 65 | padding: 15px 20px; 66 | background: #FFFFFF; 67 | border: 2px solid #D4D4D4; 68 | margin: 0px 0px 10px 0px; 69 | } 70 | 71 | .api-name { 72 | width: 40%; 73 | } 74 | 75 | .api-documentation { 76 | width: 60%; 77 | } 78 | 79 | .parameter-name { 80 | width: 20%; 81 | } 82 | 83 | .parameter-documentation { 84 | width: 50%; 85 | } 86 | 87 | .parameter-source { 88 | width: 30%; 89 | } 90 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/HelpPageAreaRegistration.cs.pp: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace $rootnamespace$.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Models/HelpPageApiModel.cs.pp: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | using System.Net.Http.Headers; 4 | using System.Web.Http.Description; 5 | 6 | namespace $rootnamespace$.Areas.HelpPage.Models 7 | { 8 | /// 9 | /// The model that represents an API displayed on the help page. 10 | /// 11 | public class HelpPageApiModel 12 | { 13 | /// 14 | /// Initializes a new instance of the class. 15 | /// 16 | public HelpPageApiModel() 17 | { 18 | SampleRequests = new Dictionary(); 19 | SampleResponses = new Dictionary(); 20 | ErrorMessages = new Collection(); 21 | } 22 | 23 | /// 24 | /// Gets or sets the that describes the API. 25 | /// 26 | public ApiDescription ApiDescription { get; set; } 27 | 28 | /// 29 | /// Gets the sample requests associated with the API. 30 | /// 31 | public IDictionary SampleRequests { get; private set; } 32 | 33 | /// 34 | /// Gets the sample responses associated with the API. 35 | /// 36 | public IDictionary SampleResponses { get; private set; } 37 | 38 | /// 39 | /// Gets the error messages associated with this model. 40 | /// 41 | public Collection ErrorMessages { get; private set; } 42 | } 43 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/ImageSample.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace $rootnamespace$.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. 7 | /// 8 | public class ImageSample 9 | { 10 | /// 11 | /// Initializes a new instance of the class. 12 | /// 13 | /// The URL of an image. 14 | public ImageSample(string src) 15 | { 16 | if (src == null) 17 | { 18 | throw new ArgumentNullException("src"); 19 | } 20 | Src = src; 21 | } 22 | 23 | public string Src { get; private set; } 24 | 25 | public override bool Equals(object obj) 26 | { 27 | ImageSample other = obj as ImageSample; 28 | return other != null && Src == other.Src; 29 | } 30 | 31 | public override int GetHashCode() 32 | { 33 | return Src.GetHashCode(); 34 | } 35 | 36 | public override string ToString() 37 | { 38 | return Src; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/InvalidSample.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace $rootnamespace$.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. 7 | /// 8 | public class InvalidSample 9 | { 10 | public InvalidSample(string errorMessage) 11 | { 12 | if (errorMessage == null) 13 | { 14 | throw new ArgumentNullException("errorMessage"); 15 | } 16 | ErrorMessage = errorMessage; 17 | } 18 | 19 | public string ErrorMessage { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | InvalidSample other = obj as InvalidSample; 24 | return other != null && ErrorMessage == other.ErrorMessage; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return ErrorMessage.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return ErrorMessage; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/SampleDirection.cs.pp: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/TextSample.cs.pp: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace $rootnamespace$.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. 7 | /// 8 | public class TextSample 9 | { 10 | public TextSample(string text) 11 | { 12 | if (text == null) 13 | { 14 | throw new ArgumentNullException("text"); 15 | } 16 | Text = text; 17 | } 18 | 19 | public string Text { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | TextSample other = obj as TextSample; 24 | return other != null && Text == other.Text; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return Text.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Text; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/Api.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using $rootnamespace$.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 |
11 | 18 |
19 | @Html.DisplayFor(m => Model) 20 |
21 |
22 | 23 | @section Scripts { 24 | 25 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using $rootnamespace$.Areas.HelpPage 5 | @using $rootnamespace$.Areas.HelpPage.Models 6 | @model IGrouping 7 | 8 | @{ 9 | var controllerDocumentation = ViewBag.DocumentationProvider != null ? 10 | ViewBag.DocumentationProvider.GetDocumentation(Model.Key) : 11 | null; 12 | } 13 | 14 |

@Model.Key.ControllerName

15 | @if (!String.IsNullOrEmpty(controllerDocumentation)) 16 | { 17 |

@controllerDocumentation

18 | } 19 | 20 | 21 | 22 | 23 | 24 | @foreach (var api in Model) 25 | { 26 | 27 | 28 | 38 | 39 | } 40 | 41 |
APIDescription
@api.HttpMethod.Method @api.RelativePath 29 | @if (api.Documentation != null) 30 | { 31 |

@api.Documentation

32 | } 33 | else 34 | { 35 |

No documentation available.

36 | } 37 |
-------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using $rootnamespace$.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | bool hasParameters = description.ParameterDescriptions.Count > 0; 8 | bool hasRequestSamples = Model.SampleRequests.Count > 0; 9 | bool hasResponseSamples = Model.SampleResponses.Count > 0; 10 | } 11 |

@description.HttpMethod.Method @description.RelativePath

12 |
13 | @if (description.Documentation != null) 14 | { 15 |

@description.Documentation

16 | } 17 | else 18 | { 19 |

No documentation available.

20 | } 21 | 22 | @if (hasParameters || hasRequestSamples) 23 | { 24 |

Request Information

25 | if (hasParameters) 26 | { 27 |

Parameters

28 | @Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters") 29 | } 30 | if (hasRequestSamples) 31 | { 32 |

Request body formats

33 | @Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples") 34 | } 35 | } 36 | 37 | @if (hasResponseSamples) 38 | { 39 |

Response Information

40 | if (description.ResponseDescription.Documentation != null) 41 | { 42 |

@description.ResponseDescription.Documentation

43 | } 44 | else 45 | { 46 |

No documentation available.

47 | } 48 |

Response body formats

49 | @Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples") 50 | } 51 |
-------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using $rootnamespace$.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using $rootnamespace$.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Collections.ObjectModel 2 | @using System.Web.Http.Description 3 | @using System.Threading 4 | @model Collection 5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (ApiParameterDescription parameter in Model) 12 | { 13 | string parameterDocumentation = parameter.Documentation != null ? 14 | parameter.Documentation : 15 | "No documentation available."; 16 | 17 | // Don't show CancellationToken because it's a special parameter 18 | if (parameter.ParameterDescriptor == null || 19 | (parameter.ParameterDescriptor != null && 20 | !typeof(CancellationToken).IsAssignableFrom(parameter.ParameterDescriptor.ParameterType))) 21 | { 22 | 23 | 24 | 25 | 40 | 41 | } 42 | } 43 | 44 |
NameDescriptionAdditional information
@parameter.Name
@parameterDocumentation
26 | @switch (parameter.Source) 27 | { 28 | case ApiParameterSource.FromBody: 29 |

Define this parameter in the request body.

30 | break; 31 | case ApiParameterSource.FromUri: 32 |

Define this parameter in the request URI.

33 | break; 34 | case ApiParameterSource.Unknown: 35 | default: 36 |

None.

37 | break; 38 | } 39 |
-------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Net.Http.Headers 2 | @model Dictionary 3 | 4 | @{ 5 | // Group the samples into a single tab if they are the same. 6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary( 7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()), 8 | pair => pair.Key); 9 | var mediaTypes = samples.Keys; 10 | } 11 |
12 | @foreach (var mediaType in mediaTypes) 13 | { 14 |

@mediaType

15 |
16 | Sample: 17 | @{ 18 | var sample = samples[mediaType]; 19 | if (sample == null) 20 | { 21 |

Sample not available.

22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |
29 | } 30 |
-------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using $rootnamespace$.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/Index.cshtml.pp: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using System.Collections.ObjectModel 5 | @using $rootnamespace$.Areas.HelpPage.Models 6 | @model Collection 7 | 8 | @{ 9 | ViewBag.Title = "ASP.NET Web API Help Page"; 10 | 11 | // Group APIs by controller 12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor); 13 | } 14 | 15 |
16 |
17 |
18 |

@ViewBag.Title

19 |
20 |
21 |
22 |
23 | 31 |
32 | @foreach (var group in apiGroups) 33 | { 34 | @Html.DisplayFor(m => group, "ApiGroup") 35 | } 36 |
37 |
38 | 39 | @section Scripts { 40 | 41 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Shared/_Layout.cshtml.pp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 43 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/_ViewStart.cshtml.pp: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages. 3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebApi.WebHost 5 | 5.2.4 6 | Microsoft ASP.NET Web API 2.2 Web Host 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm 10 | https://www.asp.net/web-api 11 | http://go.microsoft.com/fwlink/?LinkID=288859 12 | true 13 | This package contains everything you need to host ASP.NET Web API on IIS. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. 14 | This package contains everything you need to host ASP.NET Web API on IIS. 15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes. 16 | © Microsoft Corporation. All rights reserved. 17 | en-US 18 | Microsoft AspNet WebApi AspNetWebApi WebHost 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/lib/net45/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/lib/net45/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.WebPages 5 | 3.0.0 6 | Microsoft ASP.NET Web Pages 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm 10 | http://www.asp.net/web-pages 11 | true 12 | This package contains core runtime assemblies shared between ASP.NET MVC and ASP.NET Web Pages. 13 | This package contains core runtime assemblies shared between ASP.NET MVC and ASP.NET Web Pages. 14 | © Microsoft Corporation. All rights reserved. 15 | en-US 16 | Microsoft AspNet WebPages AspNetWebPages 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.Helpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.Helpers.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Deployment.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Deployment.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Razor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Razor.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.dll -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.Web.Infrastructure 5 | 1.0.0.0 6 | Microsoft.Web.Infrastructure 7 | Microsoft 8 | Microsoft 9 | http://go.microsoft.com/fwlink/?LinkID=214339 10 | http://www.asp.net 11 | false 12 | This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time. 13 | en-US 14 | 15 | -------------------------------------------------------------------------------- /WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll -------------------------------------------------------------------------------- /WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Modernizr 5 | 2.6.2 6 | Modernizr 7 | Faruk Ateş,Paul Irish,Alex Sexton 8 | Faruk Ateş,Paul Irish,Alex Sexton 9 | http://www.modernizr.com/license/ 10 | http://www.modernizr.com/ 11 | http://www.modernizr.com/i/logo.png 12 | false 13 | Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don't actually need to write any Javascript to use it. 14 | Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies. 15 | NOTE: This package is maintained on behalf of the library owners by the NuGet Community Packages project at http://nugetpackages.codeplex.com/ 16 | Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies. 17 | en-US 18 | JavaScript HTML HTML5 CSS CSS3 SVG 19 | 20 | -------------------------------------------------------------------------------- /WebAPI/packages/Modernizr.2.6.2/Tools/common.ps1: -------------------------------------------------------------------------------- 1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { 2 | try { 3 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") 4 | } 5 | catch { 6 | # _references.js file not found 7 | return 8 | } 9 | 10 | if ($referencesFileProjectItem -eq $null) { 11 | # _references.js file not found 12 | return 13 | } 14 | 15 | $referencesFilePath = $referencesFileProjectItem.FileNames(1) 16 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js" 17 | 18 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) { 19 | # File has no existing matching reference line 20 | # Add the full reference line to the beginning of the file 21 | "/// " | Add-Content $referencesTempFilePath -Encoding UTF8 22 | Get-Content $referencesFilePath | Add-Content $referencesTempFilePath 23 | } 24 | else { 25 | # Loop through file and replace old file name with new file name 26 | Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath 27 | } 28 | 29 | # Copy over the new _references.js file 30 | Copy-Item $referencesTempFilePath $referencesFilePath -Force 31 | Remove-Item $referencesTempFilePath -Force 32 | } 33 | 34 | function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) { 35 | try { 36 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") 37 | } 38 | catch { 39 | # _references.js file not found 40 | return 41 | } 42 | 43 | if ($referencesFileProjectItem -eq $null) { 44 | return 45 | } 46 | 47 | $referencesFilePath = $referencesFileProjectItem.FileNames(1) 48 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js" 49 | 50 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) { 51 | # Delete the line referencing the file 52 | Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath 53 | 54 | # Copy over the new _references.js file 55 | Copy-Item $referencesTempFilePath $referencesFilePath -Force 56 | Remove-Item $referencesTempFilePath -Force 57 | } 58 | } 59 | 60 | # Extract the version number from the file in the package's content\scripts folder 61 | $packageScriptsFolder = Join-Path $installPath Content\Scripts 62 | $modernizrFileName = Join-Path $packageScriptsFolder "modernizr-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf 63 | $modernizrFileNameRegEx = "modernizr-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js" 64 | $modernizrFileName -match $modernizrFileNameRegEx 65 | $ver = $matches[1] 66 | 67 | # Get the project item for the scripts folder 68 | try { 69 | $scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts") 70 | $projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1) 71 | } 72 | catch { 73 | # No Scripts folder 74 | Write-Host "No scripts folder found" 75 | } -------------------------------------------------------------------------------- /WebAPI/packages/Modernizr.2.6.2/Tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | . (Join-Path $toolsPath common.ps1) 4 | 5 | if ($scriptsFolderProjectItem -eq $null) { 6 | # No Scripts folder 7 | Write-Host "No Scripts folder found" 8 | exit 9 | } 10 | 11 | # Update the _references.js file 12 | AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $modernizrFileName -------------------------------------------------------------------------------- /WebAPI/packages/Modernizr.2.6.2/Tools/uninstall.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | . (Join-Path $toolsPath common.ps1) 4 | 5 | # Update the _references.js file 6 | Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Newtonsoft.Json 5 | 6.0.8 6 | Json.NET 7 | James Newton-King 8 | James Newton-King 9 | https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md 10 | http://www.newtonsoft.com/json 11 | http://www.newtonsoft.com/content/images/nugeticon.png 12 | false 13 | Json.NET is a popular high-performance JSON framework for .NET 14 | 15 | en-US 16 | json 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/netcore45/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/netcore45/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Respond 5 | 1.2.0 6 | Respond JS 7 | Scott Jehl 8 | Scott Jehl,scottjehl.com 9 | https://github.com/scottjehl/Respond 10 | https://github.com/scottjehl/Respond 11 | true 12 | The goal of this script is to provide a fast and lightweight (3kb minified / 1kb gzipped) script to enable responsive web designs in browsers that don't support CSS3 Media Queries - in particular, Internet Explorer 8 and under. It's written in such a way that it will probably patch support for other non-supporting browsers as well (more information on that soon). 13 | A fast & lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more) 14 | Merge pull request #104 from scottjehl/cross-domain Resolves Issue #59: Cross domain CSS files with ? in URL won't load 15 | 2011: Scott Jehl, scottjehl.com 16 | Respond, Media Queries 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WebGrease 5 | 1.5.2 6 | webgrease@microsoft.com 7 | Microsoft 8 | http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm 9 | true 10 | Web Grease is a suite of tools for optimizing javascript, css files and images. 11 | en-US 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /WebAPI/packages/WebGrease.1.5.2/lib/WebGrease.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/WebGrease.1.5.2/lib/WebGrease.dll -------------------------------------------------------------------------------- /WebAPI/packages/WebGrease.1.5.2/tools/WG.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/WebGrease.1.5.2/tools/WG.exe -------------------------------------------------------------------------------- /WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bootstrap 5 | 3.0.0 6 | Mark Otto,Jacob Thornton 7 | outercurve 8 | https://github.com/twbs/bootstrap/blob/master/LICENSE 9 | https://github.com/twbs/bootstrap 10 | https://github.com/twbs/bootstrap/blob/master/assets/ico/apple-touch-icon-72-precomposed.png 11 | false 12 | Sleek, intuitive, and powerful front-end framework for faster and easier web development. 13 | 14 | Copyright 2012 15 | Twitter bootstrap html5 css3 16 | 17 | -------------------------------------------------------------------------------- /WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WebAPI/packages/jQuery.1.10.2/Tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | . (Join-Path $toolsPath common.ps1) 4 | 5 | # VS 11 and above supports the new intellisense JS files 6 | $vsVersion = [System.Version]::Parse($dte.Version) 7 | $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 8 | 9 | if (-not $supportsJsIntelliSenseFile) { 10 | $displayVersion = $vsVersion.Major 11 | Write-Host "IntelliSense JS files are not supported by your version of Visual Studio: $displayVersion" 12 | exit 13 | } 14 | 15 | if ($scriptsFolderProjectItem -eq $null) { 16 | # No Scripts folder 17 | Write-Host "No Scripts folder found" 18 | exit 19 | } 20 | 21 | # Delete the vsdoc file from the project 22 | try { 23 | $vsDocProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("jquery-$ver-vsdoc.js") 24 | Delete-ProjectItem $vsDocProjectItem 25 | } 26 | catch { 27 | Write-Host "Error deleting vsdoc file: " + $_.Exception -ForegroundColor Red 28 | exit 29 | } 30 | 31 | # Copy the intellisense file to the project from the tools folder 32 | $intelliSenseFileSourcePath = Join-Path $toolsPath $intelliSenseFileName 33 | try { 34 | $scriptsFolderProjectItem.ProjectItems.AddFromFileCopy($intelliSenseFileSourcePath) 35 | } 36 | catch { 37 | # This will throw if the file already exists, so we need to catch here 38 | } 39 | 40 | # Update the _references.js file 41 | AddOrUpdate-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx $jqueryFileName -------------------------------------------------------------------------------- /WebAPI/packages/jQuery.1.10.2/Tools/uninstall.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | . (Join-Path $toolsPath common.ps1) 4 | 5 | # Determine the file paths 6 | $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName 7 | $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName 8 | 9 | if (Test-Path $projectIntelliSenseFilePath) { 10 | if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) { 11 | # The intellisense file in the project matches the file in the tools folder, delete it 12 | 13 | if ($scriptsFolderProjectItem -eq $null) { 14 | # No Scripts folder 15 | exit 16 | } 17 | 18 | try { 19 | # Get the project item for the intellisense file 20 | $intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName) 21 | } 22 | catch { 23 | # The item wasn't found 24 | exit 25 | } 26 | 27 | # Delete the project item 28 | Delete-ProjectItem $intelliSenseFileProjectItem 29 | } 30 | else { 31 | $projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf 32 | Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta 33 | } 34 | } 35 | else { 36 | # The intellisense file was not found in project 37 | Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath" 38 | } 39 | 40 | # Update the _references.js file 41 | Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx -------------------------------------------------------------------------------- /WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Angular-5-Quiz-App-With-Web-API/7a591d035d9ddb423449b0697e47e80b9afea3ce/WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg -------------------------------------------------------------------------------- /WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | jQuery 5 | 1.10.2 6 | jQuery 7 | jQuery Foundation,Inc. 8 | jQuery Foundation,Inc. 9 | http://jquery.org/license 10 | http://jquery.com/ 11 | false 12 | jQuery is a new kind of JavaScript Library. 13 | jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. 14 | NOTE: This package is maintained on behalf of the library owners by the NuGet Community Packages project at http://nugetpackages.codeplex.com/ 15 | en-US 16 | jQuery 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/packages/repositories.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------