Post([FromBody] YearWiseRequestModel value)
27 | {
28 | return _reports.Get_YearwisePayment_details(value.YearID);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Models/AppSettings.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 |
6 | namespace AngularCoreGym.Models
7 | {
8 | public class AppSettings
9 | {
10 | public string Secret { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Models/ErrorViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace AngularCoreGym.Models
4 | {
5 | public class ErrorViewModel
6 | {
7 | public string RequestId { get; set; }
8 |
9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
10 | }
11 | }
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Pages/Error.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model ErrorModel
3 | @{
4 | ViewData["Title"] = "Error";
5 | }
6 |
7 | Error.
8 | An error occurred while processing your request.
9 |
10 | @if (Model.ShowRequestId)
11 | {
12 |
13 | Request ID: @Model.RequestId
14 |
15 | }
16 |
17 | Development Mode
18 |
19 | Swapping to Development environment will display more detailed information about the error that occurred.
20 |
21 |
22 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.
23 |
24 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Pages/Error.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 | using Microsoft.AspNetCore.Mvc;
7 | using Microsoft.AspNetCore.Mvc.RazorPages;
8 |
9 | namespace AngularCoreGym.Pages
10 | {
11 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
12 | public class ErrorModel : PageModel
13 | {
14 | public string RequestId { get; set; }
15 |
16 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
17 |
18 | public void OnGet()
19 | {
20 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using AngularCoreGym
2 | @namespace AngularCoreGym.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 | using Microsoft.AspNetCore;
7 | using Microsoft.AspNetCore.Hosting;
8 | using Microsoft.Extensions.Configuration;
9 | using Microsoft.Extensions.Logging;
10 |
11 | namespace AngularCoreGym
12 | {
13 | public class Program
14 | {
15 | public static void Main(string[] args)
16 | {
17 | CreateWebHostBuilder(args).Build().Run();
18 | }
19 |
20 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
21 | WebHost.CreateDefaultBuilder(args)
22 | .UseStartup();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:49505",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "AngularCoreGym": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "https://localhost:5001;http://localhost:5000"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "AppSettings": {
3 | "Secret": "6XJCIEJO41PQZNWJC4RR"
4 | },
5 | "Logging": {
6 | "LogLevel": {
7 | "Default": "Warning"
8 | }
9 | },
10 | "AllowedHosts": "*",
11 | "ConnectionStrings": {
12 | "DatabaseConnection": "Data Source=SAI-PC\\SQLEXPRESS; UID=sa; Password=Pass$123;Database=AngularGYMDB;"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/AngularCoreGym/AngularCoreGym/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/AngularCoreGym/AngularCoreGym/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/Images/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/1.png
--------------------------------------------------------------------------------
/Images/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/2.jpg
--------------------------------------------------------------------------------
/Images/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/3.jpg
--------------------------------------------------------------------------------
/Images/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/4.jpg
--------------------------------------------------------------------------------
/Images/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/5.jpg
--------------------------------------------------------------------------------
/Images/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/6.png
--------------------------------------------------------------------------------
/Images/hqdefault.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saineshwar/ASPNET-Core-Angular-7-Project/144d3b32b8df22da6b5bb55718b28262b6f1cc97/Images/hqdefault.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 saineshwar bageri
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------