Commit 789086ab authored by hasan khaddour's avatar hasan khaddour

fix

parent 61b786d6
...@@ -11,10 +11,17 @@ ...@@ -11,10 +11,17 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.17" /> <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.17"> <PackageReference Include="AutoMapper" Version="5.2.0" />
<PrivateAssets>all</PrivateAssets>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ApplicationDomain\ApplicationDomain.csproj" />
</ItemGroup>
</Project> </Project>
...@@ -5,15 +5,15 @@ using System.Linq; ...@@ -5,15 +5,15 @@ using System.Linq;
using System.Linq.Expressions; using System.Linq.Expressions;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using ApplicationDomain.Entities;
namespace ApplicationCore.Interfaces namespace ApplicationCore.Interfaces
{ {
public interface IGenericRepository<T> where T : Entities.EntityBase public interface IGenericRepository<T> where T : EntityBase
{ {
public T Update(T entities); public T Update(T entities);
public T Insert(T entities); public T Insert(T entities);
public T GetById(int id, ISpecification<T>? specification = null ); public T GetById(int id, ISpecification<T> specification = null );
public void Delete(int id); public void Delete(int id);
public IEnumerable<T> GetAll(ISpecification<T> specification); public IEnumerable<T> GetAll(ISpecification<T> specification);
......
using System; using ApplicationDomain.Entities;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces namespace ApplicationCore.Interfaces
{ {
public interface IUnitOfWork<T> where T : Entities.EntityBase public interface IUnitOfWork<T> where T : EntityBase
{ {
IGenericRepository<T> Entity { get; } IGenericRepository<T> Entity { get; }
......
...@@ -8,9 +8,8 @@ namespace ApplicationCore.Interfaces ...@@ -8,9 +8,8 @@ namespace ApplicationCore.Interfaces
{ {
public interface IService<T> where T : class public interface IService<T> where T : class
{ {
public IEnumerable<T> GetAll();
public IEnumerable<T> GetAll(int Id); public T Create( T entity);
public void Add(int Id, T entity);
public T Update(T entity); public T Update(T entity);
public T GetDetails(int Id); public T GetDetails(int Id);
public void Delete(int Id); public void Delete(int Id);
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
...@@ -7,12 +7,14 @@ using System.Threading.Tasks; ...@@ -7,12 +7,14 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices namespace ApplicationCore.Interfaces.IServices
{ {
public interface IIngredientService public interface IIngredientService
{ {
public IEnumerable<Ingredient> GetAllIngredients(); public IEnumerable<Ingredient> GetAllIngredients();
public void AddIngredient(Ingredient ingredient); public void AddIngredient(Ingredient ingredient);
public Ingredient Update(Ingredient ingredient);
public Ingredient GetIngredientDetails(int id); public Ingredient GetIngredientDetails(int id);
public void Delete(int id); public Ingredient Update(Ingredient ingredient);
public void Delete(int id );
} }
} }
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
...@@ -7,14 +7,14 @@ using System.Threading.Tasks; ...@@ -7,14 +7,14 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices namespace ApplicationCore.Interfaces.IServices
{ {
public interface IMedicalStateService public interface IMedicalStateService : IService<MedicalState>
{ {
public IEnumerable<MedicalState> GetAll(int patientId); public IEnumerable<MedicalState> GetAllPatientMedicalStates(int patientId);
public void Add(int patientId , MedicalState medicalState); public MedicalState Add(int patientId , MedicalState medicalState);
public void AddMedicine(int medicalStateId, int medicineId); public void AddMedicine(int medicalStateId, int medicineId);
public MedicalState Update(MedicalState medicalState); //public MedicalState Update(MedicalState medicalState);
public MedicalState GetDetails(int medicalStateId); //public MedicalState GetDetails(int medicalStateId);
public void Delete(int id); //public void Delete(int id);
} }
} }
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
...@@ -8,7 +8,7 @@ using System.Threading.Tasks; ...@@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices namespace ApplicationCore.Interfaces.IServices
{ {
public interface IPatientService public interface IPatientService
{ {
public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId); public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId);
......
using ;
namespace ApplicationCore.Mapper
{
class MedicineMapper
{
}
}
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification; using ApplicationCore.Specification;
......
...@@ -3,7 +3,7 @@ using System.Collections.Generic; ...@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification; using ApplicationCore.Specification;
...@@ -29,9 +29,17 @@ namespace ApplicationCore.Services ...@@ -29,9 +29,17 @@ namespace ApplicationCore.Services
_patientService = new PatientService(patientUnitOfWork,medicalUnitOfWork); _patientService = new PatientService(patientUnitOfWork,medicalUnitOfWork);
} }
public void Add(int patientId , MedicalState medicalState) public MedicalState Add(int patientId , MedicalState medicalState)
{ {
_patientService.AddMedicalState(patientId, medicalState); var im = Create(medicalState);
_patientService.AddMedicalState(patientId ,im);
return im;
}
public MedicalState Create(MedicalState medicalState ) {
return _medicalStateUnitOfWork.Entity.Insert(medicalState);
} }
public void AddMedicine(int medicalStateId, int medicineId) public void AddMedicine(int medicalStateId, int medicineId)
...@@ -52,7 +60,11 @@ namespace ApplicationCore.Services ...@@ -52,7 +60,11 @@ namespace ApplicationCore.Services
_medicalStateUnitOfWork.Save(); _medicalStateUnitOfWork.Save();
} }
public IEnumerable<MedicalState> GetAll(int patientId) public IEnumerable<MedicalState> GetAll()
{
return _medicalStateUnitOfWork.Entity.GetAll(_medicalStateSpecification);
}
public IEnumerable<MedicalState> GetAllPatientMedicalStates(int patientId)
{ {
return _patientService.GetPatientMedicalStates(patientId); return _patientService.GetPatientMedicalStates(patientId);
} }
...@@ -65,6 +77,7 @@ namespace ApplicationCore.Services ...@@ -65,6 +77,7 @@ namespace ApplicationCore.Services
public MedicalState Update(MedicalState medicalState) public MedicalState Update(MedicalState medicalState)
{ {
var r = _medicalStateUnitOfWork.Entity.Update(medicalState); var r = _medicalStateUnitOfWork.Entity.Update(medicalState);
_medicalStateUnitOfWork.Save(); _medicalStateUnitOfWork.Save();
return r; return r;
} }
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification; using ApplicationCore.Specification;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification; using ApplicationCore.Specification;
...@@ -27,7 +27,7 @@ namespace ApplicationCore.Services ...@@ -27,7 +27,7 @@ namespace ApplicationCore.Services
_patientMedicinesSpecification = new PatientMedicinesSpecification(); _patientMedicinesSpecification = new PatientMedicinesSpecification();
_medicalStateSpecification = new MedicalStateSpecification(); _medicalStateSpecification = new MedicalStateSpecification();
} }
public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId) { public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId) {
return _patientUnitOfWork.Entity return _patientUnitOfWork.Entity
...@@ -47,17 +47,10 @@ namespace ApplicationCore.Services ...@@ -47,17 +47,10 @@ namespace ApplicationCore.Services
} }
public void AddMedicalState (int patientId, MedicalState medicalState) { public void AddMedicalState (int patientId, MedicalState medicalState) {
var ptient = _patientUnitOfWork.Entity.GetById(patientId,_patientMedicinesSpecification); var ptient = _patientUnitOfWork.Entity.GetById(patientId,_patientMedicinesSpecification);
if (medicalState.Id != 0)
foreach (var i in ptient.MedicalStates) ptient.MedicalStates.Add(medicalState);
{
if (i.Id.Equals(medicalState.Id))
return;
}
ptient.MedicalStates
.Add(medicalState
);
_patientUnitOfWork.Entity.Update(ptient); _patientUnitOfWork.Entity.Update(ptient);
_patientUnitOfWork.Save(); _patientUnitOfWork.Save();
} }
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification; using ApplicationCore.Specification.BaseSpecification;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification; using ApplicationCore.Specification.BaseSpecification;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification; using ApplicationCore.Specification.BaseSpecification;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification; using ApplicationCore.Specification.BaseSpecification;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
......
using ApplicationDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.ViewModel
{
public class MedicineViewModel
{
public String TradeName { get; set; }
public String ScintificName { get; set; }
public String ManufactureName { get; set; }
public String SideEffect { get; set; }
public String Description { get; set; }
public int Price { get; set; }
public String Image { get; set; }
public int Dosage { get; set; }
public Category Category { get; set; }
public MedicineType MedicineType { get; set; }
public ICollection<Ingredient> Ingredients { get; set; }
public ICollection<MedicalState> MedicalStates { get; set; }
}
}
using ApplicationCore.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.ViewModel
{
public class PatientMedicineViewModel
{
public IEnumerable<Patient> Patients { get; set; }
public IEnumerable<Medicine> Medicines { get; set; }
}
}
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
......
...@@ -24,6 +24,86 @@ ...@@ -24,6 +24,86 @@
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {} "https://api.nuget.org/v3/index.json": {}
}, },
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {
"C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj": {
"projectPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.Design": {
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
"suppressParent": "All",
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.Tools": {
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
"suppressParent": "All",
"target": "Package",
"version": "[5.0.17, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.408\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj",
"projectName": "ApplicationDomain",
"projectPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj",
"packagesPath": "C:\\Users\\HASAN\\.nuget\\packages\\",
"outputPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\HASAN\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": { "frameworks": {
"net5.0": { "net5.0": {
"targetAlias": "net5.0", "targetAlias": "net5.0",
......
...@@ -1581,6 +1581,20 @@ ...@@ -1581,6 +1581,20 @@
"runtime": { "runtime": {
"lib/netstandard1.3/System.Xml.XmlSerializer.dll": {} "lib/netstandard1.3/System.Xml.XmlSerializer.dll": {}
} }
},
"ApplicationDomain/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v5.0",
"dependencies": {
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
},
"compile": {
"bin/placeholder/ApplicationDomain.dll": {}
},
"runtime": {
"bin/placeholder/ApplicationDomain.dll": {}
}
} }
} }
}, },
...@@ -5942,10 +5956,16 @@ ...@@ -5942,10 +5956,16 @@
"system.xml.xmlserializer.4.3.0.nupkg.sha512", "system.xml.xmlserializer.4.3.0.nupkg.sha512",
"system.xml.xmlserializer.nuspec" "system.xml.xmlserializer.nuspec"
] ]
},
"ApplicationDomain/1.0.0": {
"type": "project",
"path": "../ApplicationDomain/ApplicationDomain.csproj",
"msbuildProject": "../ApplicationDomain/ApplicationDomain.csproj"
} }
}, },
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
"net5.0": [ "net5.0": [
"ApplicationDomain >= 1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore >= 5.0.17", "Microsoft.AspNetCore.Identity.EntityFrameworkCore >= 5.0.17",
"Microsoft.EntityFrameworkCore.Design >= 5.0.17", "Microsoft.EntityFrameworkCore.Design >= 5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer >= 5.0.17", "Microsoft.EntityFrameworkCore.SqlServer >= 5.0.17",
...@@ -5978,7 +5998,11 @@ ...@@ -5978,7 +5998,11 @@
"frameworks": { "frameworks": {
"net5.0": { "net5.0": {
"targetAlias": "net5.0", "targetAlias": "net5.0",
"projectReferences": {} "projectReferences": {
"C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj": {
"projectPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj"
}
}
} }
}, },
"warningProperties": { "warningProperties": {
......
{ {
"version": 2, "version": 2,
"dgSpecHash": "jCnjOYPZ/LIkG314gAPUJxZpvQXS9u0ekL4i5vzY2KMNhxGwBZXFH3fX9mA53DDK4uIRYj3SJuldbWKJZugHBw==", "dgSpecHash": "CSp6JRrfKdh1rHdoo3CLiDBLY/YSiTGT4lNyn7paLJjBcTLYON0hBn8ML2M1uO0R0+lyyK44eKrikaOa4Rn5tg==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationCore\\ApplicationCore.csproj", "projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationCore\\ApplicationCore.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="5.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
...@@ -6,7 +6,7 @@ using System.Linq; ...@@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class EntityBase public class EntityBase
{ {
......
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using System; using System;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class User :IdentityUser public class User :IdentityUser
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class Category : EntityBase public class Category : EntityBase
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class Ingredient : EntityBase public class Ingredient : EntityBase
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class Medicine : EntityBase public class Medicine : EntityBase
{ {
...@@ -21,11 +21,10 @@ namespace ApplicationCore.Entities ...@@ -21,11 +21,10 @@ namespace ApplicationCore.Entities
#region Relations #region Relations
public ICollection<Ingredient> Ingredients { get; set; } public ICollection<Ingredient> Ingredients { get; set; }
//public ICollection<Patient> Patients { get; set; }
public ICollection<MedicalState> MedicalStates { get; set; } public ICollection<MedicalState> MedicalStates { get; set; }
public ICollection<MedicalStateMedicine> MedicalStateMedicines { get; set; } public ICollection<MedicalStateMedicine> MedicalStateMedicines { get; set; }
public ICollection<MedicineIngredient> MedicineIngredients { get; set; } public ICollection<MedicineIngredient> MedicineIngredients { get; set; }
// public ICollection<PatientMedicine> PatientMedicines { get; set; } #endregion Relations
public void AddIngredient(Ingredient ingredient , int ratio ) { public void AddIngredient(Ingredient ingredient , int ratio ) {
MedicineIngredients.Add( MedicineIngredients.Add(
...@@ -37,8 +36,7 @@ namespace ApplicationCore.Entities ...@@ -37,8 +36,7 @@ namespace ApplicationCore.Entities
}); });
} }
#endregion Relations
} }
} }
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class MedicineIngredient : EntityBase public class MedicineIngredient : EntityBase
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class MedicineType : EntityBase public class MedicineType : EntityBase
{ {
......
...@@ -4,8 +4,8 @@ using System.Linq; ...@@ -4,8 +4,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class MedicalState : EntityBase public class MedicalState : EntityBase
{ {
public int PatientId { get; set; } public int PatientId { get; set; }
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class MedicalStateMedicine : EntityBase public class MedicalStateMedicine : EntityBase
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class Patient : EntityBase public class Patient : EntityBase
{ {
......
...@@ -4,7 +4,7 @@ using System.Linq; ...@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace ApplicationCore.Entities namespace ApplicationDomain.Entities
{ {
public class PatientMedicine : EntityBase public class PatientMedicine : EntityBase
{ {
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.ISpecification; using ApplicationCore.Interfaces.ISpecification;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
...@@ -31,12 +31,12 @@ namespace Infrastructure.Repository ...@@ -31,12 +31,12 @@ namespace Infrastructure.Repository
IQueryable<T> queryable = _table; IQueryable<T> queryable = _table;
queryable = GetQuery(queryable, specification); queryable = GetQuery(queryable, specification);
return queryable.AsEnumerable(); return queryable.AsEnumerable();
} }
public T GetById(int id, ISpecification<T>? specification) public T GetById(int id, ISpecification<T> specification = null)
{ {
...@@ -54,12 +54,14 @@ namespace Infrastructure.Repository ...@@ -54,12 +54,14 @@ namespace Infrastructure.Repository
public T Update(T entity) public T Update(T entity)
{ {
var e =_table.Attach(entity).Entity; var e =_table.Attach(entity).Entity;
_context.Entry(entity).State = EntityState.Modified; _context.Entry(entity).State = EntityState.Modified;
return e; return e;
} }
public IQueryable<T> GetQuery(IQueryable<T> inputQuery, ISpecification<T> specification) public IQueryable<T> GetQuery(IQueryable<T> inputQuery, ISpecification<T> specification)
{ {
IQueryable<T> query = inputQuery; IQueryable<T> query = inputQuery;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using Infrastructure.Repository; using Infrastructure.Repository;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
......
020f61ac4adb293b78c3951cdcf4c084d772bcb0 416f34e2a69605f583aecb2cbffaaa655aec8ee0
...@@ -16,3 +16,5 @@ C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.dll ...@@ -16,3 +16,5 @@ C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.dll
C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\ref\Infrastructure.dll C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\ref\Infrastructure.dll
C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.pdb C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.pdb
C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.genruntimeconfig.cache C:\Users\HASAN\Desktop\Medic\Infrastructure\obj\Debug\net5.0\Infrastructure.genruntimeconfig.cache
C:\Users\HASAN\Desktop\Medic\Infrastructure\bin\Debug\net5.0\ApplicationDomain.dll
C:\Users\HASAN\Desktop\Medic\Infrastructure\bin\Debug\net5.0\ApplicationDomain.pdb
...@@ -24,6 +24,86 @@ ...@@ -24,6 +24,86 @@
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {} "https://api.nuget.org/v3/index.json": {}
}, },
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {
"C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj": {
"projectPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.Design": {
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
"suppressParent": "All",
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[5.0.17, )"
},
"Microsoft.EntityFrameworkCore.Tools": {
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
"suppressParent": "All",
"target": "Package",
"version": "[5.0.17, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.408\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj",
"projectName": "ApplicationDomain",
"projectPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\ApplicationDomain.csproj",
"packagesPath": "C:\\Users\\HASAN\\.nuget\\packages\\",
"outputPath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationDomain\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\HASAN\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": { "frameworks": {
"net5.0": { "net5.0": {
"targetAlias": "net5.0", "targetAlias": "net5.0",
......
...@@ -1586,6 +1586,7 @@ ...@@ -1586,6 +1586,7 @@
"type": "project", "type": "project",
"framework": ".NETCoreApp,Version=v5.0", "framework": ".NETCoreApp,Version=v5.0",
"dependencies": { "dependencies": {
"ApplicationDomain": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17", "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17" "Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
}, },
...@@ -1595,6 +1596,20 @@ ...@@ -1595,6 +1596,20 @@
"runtime": { "runtime": {
"bin/placeholder/ApplicationCore.dll": {} "bin/placeholder/ApplicationCore.dll": {}
} }
},
"ApplicationDomain/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v5.0",
"dependencies": {
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
},
"compile": {
"bin/placeholder/ApplicationDomain.dll": {}
},
"runtime": {
"bin/placeholder/ApplicationDomain.dll": {}
}
} }
} }
}, },
...@@ -5961,6 +5976,11 @@ ...@@ -5961,6 +5976,11 @@
"type": "project", "type": "project",
"path": "../ApplicationCore/ApplicationCore.csproj", "path": "../ApplicationCore/ApplicationCore.csproj",
"msbuildProject": "../ApplicationCore/ApplicationCore.csproj" "msbuildProject": "../ApplicationCore/ApplicationCore.csproj"
},
"ApplicationDomain/1.0.0": {
"type": "project",
"path": "../ApplicationDomain/ApplicationDomain.csproj",
"msbuildProject": "../ApplicationDomain/ApplicationDomain.csproj"
} }
}, },
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
......
{ {
"version": 2, "version": 2,
"dgSpecHash": "EOUmFnARv3DJKDgTIi7pOsA+9hSXkiUmuMk1OomFBObaSFbtKNJACixX4CjDh3ePlYzTNiKaM89uMvzqDAAXHw==", "dgSpecHash": "WMVc6fgmdfsYlIBFKo6fmxyagvo3LLTp3rzBIul04ZEB6LYlqQfYuUVp7w8yH3qRrZfcbavW6j3sgcdTOfbcPw==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\Infrastructure\\Infrastructure.csproj", "projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\Infrastructure\\Infrastructure.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
......
...@@ -5,11 +5,21 @@ VisualStudioVersion = 16.0.34601.136 ...@@ -5,11 +5,21 @@ VisualStudioVersion = 16.0.34601.136
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{C87735E8-A66F-49D4-88B7-53FED58FDDF6}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{C87735E8-A66F-49D4-88B7-53FED58FDDF6}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationCore", "ApplicationCore\ApplicationCore.csproj", "{53B65131-FF5B-41C8-87ED-33C5AC0A1C28}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApplicationCore", "ApplicationCore\ApplicationCore.csproj", "{53B65131-FF5B-41C8-87ED-33C5AC0A1C28}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Infrastructure", "Infrastructure\Infrastructure.csproj", "{E8969D91-BFC0-4AD1-870A-1C15156B0526}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infrastructure", "Infrastructure\Infrastructure.csproj", "{E8969D91-BFC0-4AD1-870A-1C15156B0526}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebPresentation", "WebPresentation\WebPresentation.csproj", "{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebPresentation", "WebPresentation\WebPresentation.csproj", "{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Application Core", "Application Core", "{53898ECD-C6D8-49E8-8F5A-95C227767286}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructures", "Infrastructures", "{AF1E0C0C-8A84-4F1B-834E-E4C1BE16F773}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Web Presentation", "Web Presentation", "{9F1B3F49-A673-42CD-94E6-026739193418}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Application Domain", "Application Domain", "{E022DB60-2911-40C7-8405-2D57BE3159B0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationDomain", "ApplicationDomain\ApplicationDomain.csproj", "{FC6531F0-8393-4139-85E5-8A6A1481FA6C}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
...@@ -29,14 +39,23 @@ Global ...@@ -29,14 +39,23 @@ Global
{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Debug|Any CPU.Build.0 = Debug|Any CPU {9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Release|Any CPU.ActiveCfg = Release|Any CPU {9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Release|Any CPU.Build.0 = Release|Any CPU {9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07}.Release|Any CPU.Build.0 = Release|Any CPU
{FC6531F0-8393-4139-85E5-8A6A1481FA6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FC6531F0-8393-4139-85E5-8A6A1481FA6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC6531F0-8393-4139-85E5-8A6A1481FA6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC6531F0-8393-4139-85E5-8A6A1481FA6C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{53B65131-FF5B-41C8-87ED-33C5AC0A1C28} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6} {53B65131-FF5B-41C8-87ED-33C5AC0A1C28} = {53898ECD-C6D8-49E8-8F5A-95C227767286}
{E8969D91-BFC0-4AD1-870A-1C15156B0526} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6} {E8969D91-BFC0-4AD1-870A-1C15156B0526} = {AF1E0C0C-8A84-4F1B-834E-E4C1BE16F773}
{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6} {9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07} = {9F1B3F49-A673-42CD-94E6-026739193418}
{53898ECD-C6D8-49E8-8F5A-95C227767286} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{AF1E0C0C-8A84-4F1B-834E-E4C1BE16F773} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{9F1B3F49-A673-42CD-94E6-026739193418} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{E022DB60-2911-40C7-8405-2D57BE3159B0} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{FC6531F0-8393-4139-85E5-8A6A1481FA6C} = {E022DB60-2911-40C7-8405-2D57BE3159B0}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {80F3DC3F-8C90-4A48-9691-24E1700DECAA} SolutionGuid = {80F3DC3F-8C90-4A48-9691-24E1700DECAA}
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.ViewModel; using ApplicationCore.ViewModel;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System; using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace WebPresentation.Controllers namespace WebPresentation.Controllers
...@@ -119,11 +114,11 @@ namespace WebPresentation.Controllers ...@@ -119,11 +114,11 @@ namespace WebPresentation.Controllers
await _signInManager.SignOutAsync(); await _signInManager.SignOutAsync();
if (returnUrl != null) if (returnUrl != null)
{ {
return LocalRedirect(returnUrl); return Redirect(returnUrl);
} }
else else
{ {
return LocalRedirect("/Home/Index"); return Redirect("/Home/Index");
} }
} }
} }
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Specification.BaseSpecification; using ApplicationCore.Specification.BaseSpecification;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
...@@ -37,7 +34,7 @@ namespace WebPresentation.Controllers ...@@ -37,7 +34,7 @@ namespace WebPresentation.Controllers
{ {
var u = GetUserId(); var u = GetUserId();
var pId = _patientService.GetAll().Where(p => p.User.Id == u).FirstOrDefault().Id; var pId = _patientService.GetAll().Where(p => p.User.Id == u).FirstOrDefault().Id;
var meds = _medicalStateService.GetAll(pId); var meds = _medicalStateService.GetAllPatientMedicalStates(pId);
return View(meds); return View(meds);
} }
...@@ -84,7 +81,7 @@ namespace WebPresentation.Controllers ...@@ -84,7 +81,7 @@ namespace WebPresentation.Controllers
if (medicalState.PrescriptionTime == DateTime.MinValue ) if (medicalState.PrescriptionTime == DateTime.MinValue )
medicalState.PrescriptionTime = DateTime.Now; medicalState.PrescriptionTime = DateTime.Now;
_medicalStateService.Add(p,medicalState); _medicalStateService.Add(p,medicalState);
return RedirectToAction(nameof(Index)); return RedirectToAction("Details", "MedicalState", new { Id = id });
} }
return View(medicalState); return View(medicalState);
} }
...@@ -92,6 +89,17 @@ namespace WebPresentation.Controllers ...@@ -92,6 +89,17 @@ namespace WebPresentation.Controllers
// GET: Projects/Edit/5 // GET: Projects/Edit/5
public IActionResult Edit(int? id) public IActionResult Edit(int? id)
{ {
var uId = GetUserId();
var p = _patientService.GetAll(
)
.Where(
u => u.User.Id == uId
)
.FirstOrDefault();
ViewBag.id = p.Id;
if (id == null) if (id == null)
{ {
return NotFound(); return NotFound();
...@@ -110,7 +118,7 @@ namespace WebPresentation.Controllers ...@@ -110,7 +118,7 @@ namespace WebPresentation.Controllers
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598. // For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost] [HttpPost]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public IActionResult Edit(int id, MedicalState medicalState) public IActionResult Edit(int id,int pId , MedicalState medicalState)
{ {
if (id != medicalState.Id) if (id != medicalState.Id)
{ {
...@@ -123,17 +131,9 @@ namespace WebPresentation.Controllers ...@@ -123,17 +131,9 @@ namespace WebPresentation.Controllers
try try
{ {
var uId = GetUserId(); medicalState.PatientId = pId;
var p = _patientService.GetAll( // _patientService.UpdateMedicalState(p.Id, medicalState);
) _medicalStateService.Update(medicalState );
.Where(
u => u.User.Id == uId
)
.FirstOrDefault();
medicalState.Patient = p;
medicalState.PatientId = p.Id;
_medicalStateService.Update(medicalState);
} }
catch (DbUpdateConcurrencyException) catch (DbUpdateConcurrencyException)
...@@ -148,7 +148,7 @@ namespace WebPresentation.Controllers ...@@ -148,7 +148,7 @@ namespace WebPresentation.Controllers
} }
*/ */
} }
return RedirectToAction(nameof(Index)); return RedirectToAction("Details","MedicalState",new { Id =id});
} }
return View(medicalState); return View(medicalState);
} }
...@@ -186,7 +186,7 @@ namespace WebPresentation.Controllers ...@@ -186,7 +186,7 @@ namespace WebPresentation.Controllers
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public IActionResult DeleteConfirmed(int id) public IActionResult DeleteConfirmed(int id)
{ {
_medicineService.Delete(id); _medicalStateService.Delete(id);
return RedirectToAction(nameof(Index)); return RedirectToAction(nameof(Index));
} }
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services; using ApplicationCore.Services;
......
using ApplicationCore.Entities; using ApplicationDomain.Entities;
using ApplicationCore.Interfaces; using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices; using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services; using ApplicationCore.Services;
...@@ -30,31 +30,37 @@ namespace WebPresentation ...@@ -30,31 +30,37 @@ namespace WebPresentation
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
services.AddScoped<DbContext, MedicDbContext>(); services.AddScoped<DbContext, MedicDbContext>();
#region ADD Scoped Repository
services.AddScoped(typeof(IUnitOfWork<>),typeof(UnitOfWork<>)); services.AddScoped(typeof(IUnitOfWork<>),typeof(UnitOfWork<>));
services.AddScoped(typeof(IGenericRepository<>), typeof(GenericRepository<>)); services.AddScoped(typeof(IGenericRepository<>), typeof(GenericRepository<>));
#endregion ADD Scope dRepository
#region ADD Scoped Services
services.AddScoped<IPatientService, PatientService>(); services.AddScoped<IPatientService, PatientService>();
services.AddScoped<IMedicalStateService, MedicalStateService>(); services.AddScoped<IMedicalStateService, MedicalStateService>();
services.AddScoped<IMedicineService, MedicineService>(); services.AddScoped<IMedicineService, MedicineService>();
services.AddScoped<IIngredientService, IngredientService>(); services.AddScoped<IIngredientService, IngredientService>();
#endregion ADD Scoped Services
#region ADD DB Context
services.AddDbContext<MedicDbContext>(options => { services.AddDbContext<MedicDbContext>(options => {
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")) options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))
; ;
} }
); ; ); ;
services.AddSession();
services.AddIdentity<User, IdentityRole>() # endregion ADD DB Context
#region ADD Identity
services
.AddIdentity<User, IdentityRole>()
.AddEntityFrameworkStores<MedicDbContext>(); .AddEntityFrameworkStores<MedicDbContext>();
#endregion ADD Identity
#region ADD Authentication Schema
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie( services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(
options => options =>
{ {
...@@ -63,6 +69,9 @@ namespace WebPresentation ...@@ -63,6 +69,9 @@ namespace WebPresentation
options.AccessDeniedPath = "Access/Login"; options.AccessDeniedPath = "Access/Login";
} }
); );
#endregion ADD Authentication Schema
services.AddSession();
services.AddControllersWithViews(); services.AddControllersWithViews();
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
ViewBag.Avatar = Model.User.Avatar; ViewBag.Avatar = Model.User.Avatar;
ViewBag.owner = Model; ViewBag.owner = Model;
var DummyModel = new MedicalState { StateName="state name" , StateDescription="Description" , PrescriptionTime=DateTime.Now};
} }
...@@ -53,23 +54,31 @@ ...@@ -53,23 +54,31 @@
</div> </div>
<div class="row"> <div class="row">
@if (Model.MedicalStates.Count() == 0)
{ <div class="col-lg-4 col-md-6 d-flex align-items-stretch mb-5">
<h2 class="text-center">You dont have any MedicalState</h2> <div class="icon-box">
<img src="~/img/portfolio/noData.jpg" class="figure-img" /> <div class="icon"><i class="fas fa-heartbeat"></i></div>
} <h4> New Medical State</h4>
else <p>Click on the Create Button to Create a new Medical State</p>
@foreach (var item in Model.MedicalStates) <a asp-controller="Medicalstate" asp-action="Create" class="btn btn-primary">
Create
</a>
</div>
</div>
@foreach (var item in Model.MedicalStates)
{ {
<div class="col-lg-4 col-md-6 d-flex align-items-stretch"> <div class="col-lg-4 col-md-6 d-flex flex-column align-items-stretch mb-5">
<div class="icon-box"> <div class="icon-box">
<div class="icon"><i class="fas fa-heartbeat"></i></div> <div class="icon"><i class="fas fa-heartbeat"></i></div>
<h4>@item.StateName</h4> <h4>@item.StateName</h4>
<p>@item.StateDescription - Prescriped at @(item.PrescriptionTime)</p>
<a data-toggle="modal" data-target="#item-@(item.Id)" class="btn btn-primary" > <p class="text-start">Diagonistic : @item.StateDescription<br /> Prescriped at : @(item.PrescriptionTime) </p>
Details</a> <a data-toggle="modal" data-target="#item-@(item.Id)" class="btn btn-primary">
Details
</a>
</div> </div>
</div> </div>
...@@ -140,11 +149,11 @@ ...@@ -140,11 +149,11 @@
</section> </section>
<!-- Contact Section --> <!-- Contact Section -->
<section class="page-section" id="contact"> <section class="page-section" id="Create">
<div class="container"> <div class="container">
<!-- Contact Section Heading --> <!-- Contact Section Heading -->
<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Contact Me</h2> <h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Create New Medical State</h2>
<!-- Icon Divider --> <!-- Icon Divider -->
<div class="divider-custom"> <div class="divider-custom">
...@@ -159,39 +168,33 @@ ...@@ -159,39 +168,33 @@
<div class="row"> <div class="row">
<div class="col-lg-8 mx-auto"> <div class="col-lg-8 mx-auto">
<!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. --> <!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->
<form name="sentMessage" id="contactForm" novalidate="novalidate"> <form name="sentMessage" id="contactForm" novalidate="novalidate"
<div class="control-group"> method="post" asp-controller="MedicalState" asp-action="Create">
<div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Name</label>
<input class="form-control" id="name" type="text" placeholder="Name" required="required" data-validation-required-message="Please enter your name.">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="control-group"> <div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2"> <div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Email Address</label> <label asp-for="@DummyModel.StateName"></label>
<input class="form-control" id="email" type="email" placeholder="Email Address" required="required" data-validation-required-message="Please enter your email address."> <input class="form-control" asp-for="@DummyModel.StateName" data-validation-required-message="Please enter your name.">
<p class="help-block text-danger"></p> <p class="help-block text-danger"></p>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2"> <div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Phone Number</label> <label asp-for="@DummyModel.PrescriptionTime" ></label>
<input class="form-control" id="phone" type="tel" placeholder="Phone Number" required="required" data-validation-required-message="Please enter your phone number."> <input class="form-control" asp-for="@DummyModel.PrescriptionTime" placeholder="Phone Number" required="required" data-validation-required-message="Please enter your phone number.">
<p class="help-block text-danger"></p> <p class="help-block text-danger"></p>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2"> <div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Message</label> <label asp-for="@DummyModel.StateDescription"></label>
<textarea class="form-control" id="message" rows="5" placeholder="Message" required="required" data-validation-required-message="Please enter a message."></textarea> <textarea class="form-control" id="message" rows="5" asp-for="@DummyModel.StateDescription"data-validation-required-message="Please enter a message."></textarea>
<p class="help-block text-danger"></p> <p class="help-block text-danger"></p>
</div> </div>
</div> </div>
<br> <br>
<div id="success"></div> <div id="success"></div>
<div class="form-group"> <div class="form-group">
<button type="submit" class="btn btn-primary btn-xl" id="sendMessageButton">Send</button> <button type="submit" class="btn btn-primary btn-xl" id="sendMessageButton">Create</button>
</div> </div>
</form> </form>
</div> </div>
......
@model ApplicationCore.Entities.Ingredient @model Ingredient
@{ @{
ViewData["Title"] = "Create"; ViewData["Title"] = "Create";
Layout = "_AdminLayout"; Layout = "_AdminLayout";
} }
<h1>Create</h1>
<section class="page-section" style="background-color: #f4f5f7;">
<h4>Ingredient</h4> <div class="container py-5 h-100">
<hr /> <div class="row d-flex justify-content-center align-items-center h-100">
<div class="row"> <div class="col col-8 col-lg-8 mb-4 mb-lg-0">
<div class="col-md-4"> <div class="card mb-3" style="border-radius: .5rem;">
<form asp-action="Create"> <div class="row g-0">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group"> <h1>Create</h1>
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" /> <h4>Ingredient</h4>
<span asp-validation-for="Name" class="text-danger"></span> <hr />
</div> <div class="row">
<div class="form-group"> <div class="col-md-4">
<label asp-for="Description" class="control-label"></label> <form asp-action="Create">
<input asp-for="Description" class="form-control" /> <div asp-validation-summary="ModelOnly" class="text-danger"></div>
<span asp-validation-for="Description" class="text-danger"></span> <div class="form-group">
</div> <label asp-for="Name" class="control-label"></label>
<div class="form-group"> <input asp-for="Name" class="form-control" />
<input type="submit" value="Create" class="btn btn-primary" /> <span asp-validation-for="Name" class="text-danger"></span>
</div> </div>
</form> <div class="form-group">
</div> <label asp-for="Description" class="control-label"></label>
</div> <input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
<div> </div>
<a asp-action="Index">Back to List</a> <div class="form-group">
</div> <input type="submit" value="Create" class="btn btn-primary" />
</div>
@section Scripts { </form>
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");} </div>
} </div>
<div>
<a asp-action="Index">Back to List</a>
</div></div></div></div></div></div></section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
@model ApplicationCore.Entities.Ingredient @model Ingredient
@{ @{
ViewData["Title"] = "Delete"; ViewData["Title"] = "Delete";
......
@model ApplicationCore.Entities.Ingredient @model Ingredient
@{ @{
ViewData["Title"] = "Details"; ViewData["Title"] = "Details";
......
@model ApplicationCore.Entities.Ingredient; @model Ingredient;
@{ @{
ViewData["Title"] = "Edit"; ViewData["Title"] = "Edit";
......
@model IEnumerable<ApplicationCore.Entities.Ingredient> @model IEnumerable<Ingredient>
@{ @{
ViewData["Title"] = "Index"; ViewData["Title"] = "Index";
......
@model ApplicationCore.Entities.MedicalState @model MedicalState
@{ @{
ViewData["Title"] = "Create"; ViewData["Title"] = "Create";
...@@ -6,44 +6,49 @@ ...@@ -6,44 +6,49 @@
} }
<h1>Create</h1> <section class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<hr /> <div class="row d-flex justify-content-center align-items-center h-100">
<div class="row"> <div class="col col-8 col-lg-8 mb-4 mb-lg-0">
<div class="col-md-4"> <div class="card mb-3" style="border-radius: .5rem;">
<form asp-action="Create" asp-controller="MedicalState"> <div class="row g-0">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group"> <div class="row">
<div class="col-5"> <div class="col-md-4">
<label asp-for="StateName" class="control-label"></label> <form asp-action="Create" asp-controller="MedicalState">
<input asp-for="StateName" class="form-control" /> <div asp-validation-summary="ModelOnly" class="text-danger"></div>
<span asp-validation-for="StateName" class="text-danger"></span> <div class="form-group">
</div> <div class="col-5">
<div class="col-5"> <label asp-for="StateName" class="control-label"></label>
<label asp-for="PrescriptionTime" class="control-label"></label> <input asp-for="StateName" class="form-control" />
<input asp-for="PrescriptionTime" class="form-control" /> <span asp-validation-for="StateName" class="text-danger"></span>
<span asp-validation-for="PrescriptionTime" class="text-danger"></span> </div>
</div> <div class="col-5">
</div> <label asp-for="PrescriptionTime" class="control-label"></label>
<div class="form-group"> <input asp-for="PrescriptionTime" class="form-control" />
<label asp-for="StateDescription" class="control-label"></label> <span asp-validation-for="PrescriptionTime" class="text-danger"></span>
<input asp-for="StateDescription" class="form-control" /> </div>
<span asp-validation-for="StateDescription" class="text-danger"></span> </div>
<div class="form-group">
</div> <label asp-for="StateDescription" class="control-label"></label>
<div> <input asp-for="StateDescription" class="form-control" />
</div> <span asp-validation-for="StateDescription" class="text-danger"></span>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" /> </div>
</div> <div>
</form> </div>
</div> <div class="form-group">
</div> <input type="submit" value="Create" class="btn btn-primary" />
</div>
<div> </form>
<a asp-action="Index">Back to List</a> </div>
</div> </div>
@section Scripts { <div>
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");} <a asp-action="Index">Back to List</a>
} </div>
</div></div></div></div></div></section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
@model MedicalState
@{
ViewData["Title"] = "Delete";
}
<section class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-8 col-lg-8 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<h1>Delete</h1>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Medical State</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.StateName)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.StateName)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.StateDescription)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.StateDescription)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.PrescriptionTime)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.PrescriptionTime)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
<a asp-action="Index">Back to List</a>
</form>
</div>
</div></div></div></div></section>
\ No newline at end of file
...@@ -32,19 +32,20 @@ ...@@ -32,19 +32,20 @@
Go Back Go Back
</a> </a>
</div> </div>
<div class="col-md-10"> <div class="col">
<div class="card-body p-4"> <div class="card-body p-4">
<h6>Information</h6> <h6>Information</h6>
<hr class="mt-0 mb-4"> <hr class="mt-0 mb-4">
<div class="row pt-1"> <div class="row pt-1">
<div class="col-6 mb-3"> <div class="col-6 mb-3">
<h6>Description</h6> <h6>Description</h6>
<p class="text-muted">@Model.StateDescription</p> <p class="text">@Model.StateDescription</p>
</div> </div>
<div class="col-6 mb-3"> <div class="col-6 mb-3">
<h6>Medicines Count:@Model.Medicines.Count()</h6> <h6>Medicines Count:@Model.Medicines.Count()</h6>
<a asp-controller="MedicalState" asp-action="AddMedicine" asp-route-id="@Model.Id">Add Medicine</a> <a class="btn btn-primary m-1" asp-controller="MedicalState" asp-action="AddMedicine" asp-route-id="@Model.Id">Add Medicine</a>
<a asp-controller="MedicalState" asp-action="Edit" asp-route-id="@Model.Id">Edit</a> <a class="btn btn-primary m-1" asp-controller="MedicalState" asp-action="Edit" asp-route-id="@Model.Id">Edit</a>
<a class="btn btn-primary m-1" asp-controller="MedicalState" asp-action="Delete" asp-route-id="@Model.Id">Delete</a>
</div> </div>
</div> </div>
......
@model ApplicationCore.Entities.MedicalState @model MedicalState
@{ @{
ViewData["Title"] = "Edit"; ViewData["Title"] = "Edit";
...@@ -6,45 +6,49 @@ ...@@ -6,45 +6,49 @@
} }
<h1>Create</h1> <section class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<hr /> <div class="row d-flex justify-content-center align-items-center h-100">
<div class="row"> <div class="col col-8 col-lg-8 mb-4 mb-lg-0 p-4">
<div class="col-md-4"> <div class="card mb-3" style="border-radius: .5rem;">
<form asp-action="Edit" asp-controller="MedicalState"> <form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div> <div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group"> <div class="form-group">
<div class="col-5"> <div class="col-5">
<label asp-for="StateName" class="control-label"></label> <label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" /> <input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span> <span asp-validation-for="StateName" class="text-danger"></span>
</div> </div>
<div class="col-5"> <div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label> <label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" /> <input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span> <span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label asp-for="StateDescription" class="control-label"></label> <label asp-for="StateDescription" class="control-label"></label>
<input asp-for="StateDescription" class="form-control" /> <textarea asp-for="StateDescription" class="form-control" >
<span asp-validation-for="StateDescription" class="text-danger"></span> </textarea>
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div> </div>
</div> <input type="hidden" asp-for="Id" /> <div>
</div> <input type="hidden" asp-for="Id" />
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" /> <div class="form-group">
<input hidden value="@ViewBag.id" name="pId" />
<input type="submit" value="Save" class="btn btn-primary" />
</div>
</form>
<a asp-action="Index">Back to List</a>
</div>
</div>
</div> </div>
</form> </div>
</div> </section>
</div> @section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
<div> }
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
...@@ -4,63 +4,73 @@ ...@@ -4,63 +4,73 @@
ViewData["Title"] = "Medical states "; ViewData["Title"] = "Medical states ";
} }
@foreach(var item in Model){
<section class="page-section"> <section class="page-section">
<div class="container py-5 h-100"> @if (Model.Count() == 0)
<div class="row d-flex justify-content-center align-items-center h-100"> {
<div class="col col-lg-8 mb-4 mb-lg-0"> <h2 class="text-center">You dont have any MedicalState</h2>
<div class="card mb-3" style="border-radius: .5rem;"> <img src="~/img/portfolio/noData.jpg" class="figure-img" />
<div class="row g-0"> <h3>Create New <a asp-action="Create" asp-controller="MedicalState">Create</a></h3>
<div class="col-md-4 gradient-custom text-center text-black" }
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;"> else
<img src="~/img/portfolio/ecole.png"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
<h5>@item.StateName</h5>
<p>Prescriped At : @item.PrescriptionTime</p>
<a asp-action="Edit" asp-route-id="@item.Id">
<i class="far fa-edit mb-5"></i>
</a>
<a asp-action="Index"> @foreach (var item in Model)
{
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-lg-8 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="row g-0">
<div class="col-md-4 gradient-custom text-center text-black"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<img src="~/img/portfolio/ecole.png"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
<h5>@item.StateName</h5>
<p>Prescriped At : @item.PrescriptionTime</p>
<a asp-action="Edit" asp-route-id="@item.Id">
<i class="far fa-edit mb-5"></i>
</a>
<i class="far fa-backward"> <a asp-action="Index">
</i> <i class="far fa-backward">
Go Back
</a> </i>
</div> Go Back
<div class="col-md-8"> </a>
<div class="card-body p-4">
<h6>Information</h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Description</h6>
<p class="text-muted">@item.StateDescription</p>
</div>
<div class="col-6 mb-3">
<h6>Medicine count :@item.Medicines.Count()</h6>
</div>
</div> </div>
<div class="row pt-1"> <div class="col-md-8">
<div class="col-6 mb-3"> <div class="card-body p-4">
<a asp-action="Index">Back to Home</a> <h6>Information</h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Description</h6>
<p class="text-muted">@item.StateDescription</p>
</div>
<div class="col-6 mb-3">
<h6>Medicine count :@item.Medicines.Count()</h6>
</div>
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to Home</a>
</div> </div>
<div class="col-6 mb-3"> <div class="col-6 mb-3">
<h6>Add Medicine </h6>
<a asp-action="AddMedicine" asp-controller="MedicalState" asp-route-id="@item.Id">Add </a>
</div> <a class="btn btn-primary" asp-action="Details" asp-controller="MedicalState" asp-route-id="@item.Id">Details </a>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> }
</section> </section>
} \ No newline at end of file
\ No newline at end of file
@model ApplicationCore.Entities.Medicine @model Medicine
@{ @{
ViewData["Title"] = "Create"; ViewData["Title"] = "Create";
......
@model ApplicationCore.Entities.Medicine @model Medicine
@{ @{
ViewData["Title"] = "Delete"; ViewData["Title"] = "Delete";
Layout = "_AdminLayout"; Layout = "_AdminLayout";
} }
...@@ -14,32 +14,32 @@ ...@@ -14,32 +14,32 @@
<h4>Medicine</h4> <h4>Medicine</h4>
<hr /> <hr />
<dl class="row"> <dl class="row">
<dt class = "col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.TradeName) @Html.DisplayNameFor(model => model.TradeName)
</dt> </dt>
<dd class = "col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.TradeName) @Html.DisplayFor(model => model.TradeName)
</dd> </dd>
<dt class = "col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Description) @Html.DisplayNameFor(model => model.Description)
</dt> </dt>
<dd class = "col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.Description) @Html.DisplayFor(model => model.Description)
</dd> </dd>
<dt class = "col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Category.Name) @Html.DisplayNameFor(model => model.Category.Name)
</dt> </dt>
<dd class = "col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.Category.Name) @Html.DisplayFor(model => model.Category.Name)
</dd> </dd>
<dt class = "col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Price) @Html.DisplayNameFor(model => model.Price)
</dt> </dt>
<dd class = "col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.Price) @Html.DisplayFor(model => model.Price)
</dd> </dd>
</dl> </dl>
<form asp-action="Delete"> <form asp-action="Delete">
<input type="hidden" asp-for="Id" /> <input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" /> | <input type="submit" value="Delete" class="btn btn-danger" /> |
......
@model ApplicationCore.Entities.Medicine; @model Medicine;
@{ @{
ViewData["Title"] = "Edit"; ViewData["Title"] = "Edit";
......
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
<div class="collapse navbar-collapse" id="navbarResponsive"> <div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item mx-0 mx-lg-1"> <li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#portfolio">Medicines</a> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Index" asp-controller="MedicalState">Medicines</a>
</li> </li>
<li class="nav-item mx-0 mx-lg-1"> <li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#galary">Galary</a> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="MedicineGalary" asp-controller="Home">Galary</a>
</li> </li>
<li class="nav-item mx-0 mx-lg-1"> <li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#contact">Contact</a> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"asp-action="Index" asp-controller="Home">Home</a>
</li> </li>
<partial name="_LoginPartial" /> <partial name="_LoginPartial" />
...@@ -99,10 +99,10 @@ ...@@ -99,10 +99,10 @@
<!-- Footer About Text --> <!-- Footer About Text -->
<div class="col-lg-4"> <div class="col-lg-4">
<h4 class="text-uppercase mb-4">About Freelancer</h4> <h4 class="text-uppercase mb-4">Admin Dashboard</h4>
<p class="lead mb-0"> <p class="lead mb-0">
Freelance is a free to use, MIT licensed Bootstrap theme created by here is the link to the Dashboard<br />
<a href="http://startbootstrap.com">Start Bootstrap</a>. <a asp-action="Index" asp-controller="Medicine">Click me !.</a>
</p> </p>
</div> </div>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<!-- Copyright Section --> <!-- Copyright Section -->
<section class="copyright py-4 text-center text-white"> <section class="copyright py-4 text-center text-white">
<div class="container"> <div class="container">
<small>Copyright &copy; Your Website 2019</small> <small>Copyright &copy; Rawad & Hasan 2024</small>
</div> </div>
</section> </section>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</li> </li>
<li class="nav-item rounded js-scroll-trigger"> <li class="nav-item rounded js-scroll-trigger">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Logout" asp-controller="Access" asp-route-returnUrl=""> Logout </a> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Logout" asp-controller="Access" asp-route-returnUrl="/Home/Index"> Logout </a>
</li> </li>
......
@using WebPresentation @using WebPresentation
@using WebPresentation.Models @using WebPresentation.Models
@using ApplicationCore.Entities @using ApplicationDomain.Entities;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@using System @using System
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper" Version="5.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.17" /> <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.17"> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.17">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" /> <ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" />
<ProjectReference Include="..\ApplicationDomain\ApplicationDomain.csproj" />
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" /> <ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
</ItemGroup> </ItemGroup>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
"WebPresentation/1.0.0": { "WebPresentation/1.0.0": {
"dependencies": { "dependencies": {
"ApplicationCore": "1.0.0", "ApplicationCore": "1.0.0",
"ApplicationDomain": "1.0.0",
"Infrastructure": "1.0.0", "Infrastructure": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17", "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.Design": "5.0.17", "Microsoft.EntityFrameworkCore.Design": "5.0.17",
...@@ -1874,6 +1875,7 @@ ...@@ -1874,6 +1875,7 @@
}, },
"ApplicationCore/1.0.0": { "ApplicationCore/1.0.0": {
"dependencies": { "dependencies": {
"ApplicationDomain": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17", "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17" "Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
}, },
...@@ -1884,6 +1886,18 @@ ...@@ -1884,6 +1886,18 @@
"ApplicationCore.dll": {} "ApplicationCore.dll": {}
} }
}, },
"ApplicationDomain/1.0.0": {
"dependencies": {
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
},
"runtime": {
"ApplicationDomain.dll": {}
},
"compile": {
"ApplicationDomain.dll": {}
}
},
"Infrastructure/1.0.0": { "Infrastructure/1.0.0": {
"dependencies": { "dependencies": {
"ApplicationCore": "1.0.0", "ApplicationCore": "1.0.0",
...@@ -4475,6 +4489,11 @@ ...@@ -4475,6 +4489,11 @@
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
}, },
"ApplicationDomain/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Infrastructure/1.0.0": { "Infrastructure/1.0.0": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
......
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -40,7 +40,7 @@ using System; ...@@ -40,7 +40,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f388de96728e624cc50372185fc0eb996ca1ee35", @"/Views/Home/MedicinesGalary.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f388de96728e624cc50372185fc0eb996ca1ee35", @"/Views/Home/MedicinesGalary.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Home_MedicinesGalary : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Medicine>> public class Views_Home_MedicinesGalary : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Medicine>>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "AddMedicine", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "AddMedicine", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -146,7 +146,7 @@ WriteAttributeValue("", 748, item.Image, 748, 11, false); ...@@ -146,7 +146,7 @@ WriteAttributeValue("", 748, item.Image, 748, 11, false);
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n \r\n </p>\r\n "); WriteLiteral("\r\n \r\n </p>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f388de96728e624cc50372185fc0eb996ca1ee357774", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f388de96728e624cc50372185fc0eb996ca1ee357776", async() => {
WriteLiteral("Add to my Profile"); WriteLiteral("Add to my Profile");
} }
); );
......
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -40,7 +40,7 @@ using System; ...@@ -40,7 +40,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d8ddb6bffa5a9b264bf8f89038bf03c234083fd3", @"/Views/Home/Privacy.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d8ddb6bffa5a9b264bf8f89038bf03c234083fd3", @"/Views/Home/Privacy.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Privacy : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> public class Views_Home_Privacy : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{ {
#pragma warning disable 1998 #pragma warning disable 1998
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "00e73f8604b104c122644498f4fe96a4848f4f42" #pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4a9c464cd957f4a2db1817e42de1eac9cf0c295d"
// <auto-generated/> // <auto-generated/>
#pragma warning disable 1591 #pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Delete), @"mvc.1.0.view", @"/Views/Ingredient/Delete.cshtml")] [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Delete), @"mvc.1.0.view", @"/Views/Ingredient/Delete.cshtml")]
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -39,9 +39,9 @@ using System; ...@@ -39,9 +39,9 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"00e73f8604b104c122644498f4fe96a4848f4f42", @"/Views/Ingredient/Delete.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a9c464cd957f4a2db1817e42de1eac9cf0c295d", @"/Views/Ingredient/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Ingredient> public class Views_Ingredient_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Ingredient>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "hidden", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "hidden", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -118,9 +118,9 @@ using System; ...@@ -118,9 +118,9 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dd>\r\n \r\n </dl>\r\n \r\n "); WriteLiteral("\r\n </dd>\r\n \r\n </dl>\r\n \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "00e73f8604b104c122644498f4fe96a4848f4f426467", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4a9c464cd957f4a2db1817e42de1eac9cf0c295d6444", async() => {
WriteLiteral("\r\n "); WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "00e73f8604b104c122644498f4fe96a4848f4f426733", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4a9c464cd957f4a2db1817e42de1eac9cf0c295d6710", async() => {
} }
); );
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
...@@ -143,7 +143,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid ...@@ -143,7 +143,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" /> |\r\n "); WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" /> |\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "00e73f8604b104c122644498f4fe96a4848f4f428515", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4a9c464cd957f4a2db1817e42de1eac9cf0c295d8492", async() => {
WriteLiteral("Back to List"); WriteLiteral("Back to List");
} }
); );
...@@ -186,7 +186,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid ...@@ -186,7 +186,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<ApplicationCore.Entities.Ingredient> Html { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Ingredient> Html { get; private set; }
} }
} }
#pragma warning restore 1591 #pragma warning restore 1591
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0c434709446986eb280eaeea2b44638c37fcb4e1" #pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "bd1a3f3afb1c9b5d34889221087c22742e91c4a1"
// <auto-generated/> // <auto-generated/>
#pragma warning disable 1591 #pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Details), @"mvc.1.0.view", @"/Views/Ingredient/Details.cshtml")] [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Details), @"mvc.1.0.view", @"/Views/Ingredient/Details.cshtml")]
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -39,9 +39,9 @@ using System; ...@@ -39,9 +39,9 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"0c434709446986eb280eaeea2b44638c37fcb4e1", @"/Views/Ingredient/Details.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"bd1a3f3afb1c9b5d34889221087c22742e91c4a1", @"/Views/Ingredient/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Ingredient> public class Views_Ingredient_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Ingredient>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/img/portfolio/instagram.png"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/img/portfolio/instagram.png"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("Avatar"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("Avatar"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -94,7 +94,7 @@ using System; ...@@ -94,7 +94,7 @@ using System;
<div class=""col-md-4 gradient-custom text-center text-black"" <div class=""col-md-4 gradient-custom text-center text-black""
style=""border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;""> style=""border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;"">
"); ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0c434709446986eb280eaeea2b44638c37fcb4e16466", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bd1a3f3afb1c9b5d34889221087c22742e91c4a16443", async() => {
} }
); );
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
...@@ -127,7 +127,7 @@ using System; ...@@ -127,7 +127,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("</p>\r\n "); WriteLiteral("</p>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c434709446986eb280eaeea2b44638c37fcb4e18347", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd1a3f3afb1c9b5d34889221087c22742e91c4a18324", async() => {
WriteLiteral("\r\n <i class=\"far fa-edit mb-5\"></i>\r\n "); WriteLiteral("\r\n <i class=\"far fa-edit mb-5\"></i>\r\n ");
} }
); );
...@@ -158,7 +158,7 @@ using System; ...@@ -158,7 +158,7 @@ using System;
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(" \r\n \r\n "); WriteLiteral(" \r\n \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c434709446986eb280eaeea2b44638c37fcb4e110664", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd1a3f3afb1c9b5d34889221087c22742e91c4a110641", async() => {
WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n "); WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n ");
} }
); );
...@@ -216,7 +216,7 @@ using System; ...@@ -216,7 +216,7 @@ using System;
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<ApplicationCore.Entities.Ingredient> Html { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Ingredient> Html { get; private set; }
} }
} }
#pragma warning restore 1591 #pragma warning restore 1591
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "405454782c1c09540c1a8ce60bddc7666b62d526" #pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f3fbdb77aff3a05ddb7740f44f7b5402680a6cb6"
// <auto-generated/> // <auto-generated/>
#pragma warning disable 1591 #pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Index), @"mvc.1.0.view", @"/Views/Ingredient/Index.cshtml")] [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Index), @"mvc.1.0.view", @"/Views/Ingredient/Index.cshtml")]
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -39,9 +39,9 @@ using System; ...@@ -39,9 +39,9 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"405454782c1c09540c1a8ce60bddc7666b62d526", @"/Views/Ingredient/Index.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f3fbdb77aff3a05ddb7740f44f7b5402680a6cb6", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<ApplicationCore.Entities.Ingredient>> public class Views_Ingredient_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Ingredient>>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Edit", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Edit", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredient", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredient", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -190,7 +190,7 @@ using System; ...@@ -190,7 +190,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </td>\r\n \r\n <td>\r\n "); WriteLiteral("\r\n </td>\r\n \r\n <td>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "405454782c1c09540c1a8ce60bddc7666b62d5268637", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f3fbdb77aff3a05ddb7740f44f7b5402680a6cb68614", async() => {
WriteLiteral("<i class=\"far fa-pen-to-square text-bg-info\"></i>"); WriteLiteral("<i class=\"far fa-pen-to-square text-bg-info\"></i>");
} }
); );
...@@ -223,7 +223,7 @@ using System; ...@@ -223,7 +223,7 @@ using System;
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n "); WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "405454782c1c09540c1a8ce60bddc7666b62d52611092", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f3fbdb77aff3a05ddb7740f44f7b5402680a6cb611069", async() => {
WriteLiteral("<i class=\"far fa-address-card\"></i>"); WriteLiteral("<i class=\"far fa-address-card\"></i>");
} }
); );
...@@ -256,7 +256,7 @@ using System; ...@@ -256,7 +256,7 @@ using System;
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n "); WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "405454782c1c09540c1a8ce60bddc7666b62d52613537", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f3fbdb77aff3a05ddb7740f44f7b5402680a6cb613514", async() => {
WriteLiteral("<i class=\"far fa-trash-can text-bg-danger\"></i>"); WriteLiteral("<i class=\"far fa-trash-can text-bg-danger\"></i>");
} }
); );
...@@ -308,7 +308,7 @@ using System; ...@@ -308,7 +308,7 @@ using System;
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<IEnumerable<ApplicationCore.Entities.Ingredient>> Html { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<IEnumerable<Ingredient>> Html { get; private set; }
} }
} }
#pragma warning restore 1591 #pragma warning restore 1591
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -40,7 +40,7 @@ using System; ...@@ -40,7 +40,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a", @"/Views/Medicine/AddIngredints.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a", @"/Views/Medicine/AddIngredints.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_AddIngredints : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Ingredient>> public class Views_Medicine_AddIngredints : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Ingredient>>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("form-select"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("form-select"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -75,9 +75,9 @@ using System; ...@@ -75,9 +75,9 @@ using System;
public async override global::System.Threading.Tasks.Task ExecuteAsync() public async override global::System.Threading.Tasks.Task ExecuteAsync()
{ {
WriteLiteral("<section class=\"page-section p-5\">\r\n "); WriteLiteral("<section class=\"page-section p-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a5200", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a5202", async() => {
WriteLiteral("\r\n\r\n\r\n <div class=\"form-group floating-label-form-group controls mb-0 pb-2\">\r\n <label>Choose Ingredient</label>\r\n\r\n <p class=\"help-block text-danger\"></p>\r\n </div>\r\n\r\n "); WriteLiteral("\r\n\r\n\r\n <div class=\"form-group floating-label-form-group controls mb-0 pb-2\">\r\n <label>Choose Ingredient</label>\r\n\r\n <p class=\"help-block text-danger\"></p>\r\n </div>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a5687", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a5689", async() => {
WriteLiteral("\r\n"); WriteLiteral("\r\n");
#nullable restore #nullable restore
#line 15 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml" #line 15 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml"
...@@ -88,7 +88,7 @@ using System; ...@@ -88,7 +88,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral(" "); WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a6226", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd7a098e0cb6bfa5309d1d17c44c54e46532ba0a6228", async() => {
#nullable restore #nullable restore
#line 17 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml" #line 17 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml"
Write(i.Name); Write(i.Name);
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e367546a4b9fc101f282705b60c549c64aa41e83" #pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f788f576b936745fdd89e96ae1c758f67e6a9237"
// <auto-generated/> // <auto-generated/>
#pragma warning disable 1591 #pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Delete), @"mvc.1.0.view", @"/Views/Medicine/Delete.cshtml")] [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Delete), @"mvc.1.0.view", @"/Views/Medicine/Delete.cshtml")]
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -39,9 +39,9 @@ using System; ...@@ -39,9 +39,9 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e367546a4b9fc101f282705b60c549c64aa41e83", @"/Views/Medicine/Delete.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f788f576b936745fdd89e96ae1c758f67e6a9237", @"/Views/Medicine/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Medicine> public class Views_Medicine_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Medicine>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "hidden", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "hidden", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -79,13 +79,13 @@ using System; ...@@ -79,13 +79,13 @@ using System;
ViewData["Title"] = "Delete"; ViewData["Title"] = "Delete";
Layout = "_AdminLayout"; Layout = "_AdminLayout";
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n<h1>Delete</h1>\r\n\r\n<h3>Are you sure you want to delete this?</h3>\r\n<div>\r\n <h4>Medicine</h4>\r\n <hr />\r\n <dl class=\"row\">\r\n <dt class = \"col-sm-2\">\r\n "); WriteLiteral("\r\n<h1>Delete</h1>\r\n\r\n<h3>Are you sure you want to delete this?</h3>\r\n<div>\r\n <h4>Medicine</h4>\r\n <hr />\r\n <dl class=\"row\">\r\n <dt class=\"col-sm-2\">\r\n ");
#nullable restore #nullable restore
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.TradeName)); Write(Html.DisplayNameFor(model => model.TradeName));
...@@ -93,7 +93,7 @@ using System; ...@@ -93,7 +93,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class = \"col-sm-10\">\r\n "); WriteLiteral("\r\n </dt>\r\n <dd class=\"col-sm-10\">\r\n ");
#nullable restore #nullable restore
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.TradeName)); Write(Html.DisplayFor(model => model.TradeName));
...@@ -101,7 +101,7 @@ using System; ...@@ -101,7 +101,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dd>\r\n <dt class = \"col-sm-2\">\r\n "); WriteLiteral("\r\n </dd>\r\n <dt class=\"col-sm-2\">\r\n ");
#nullable restore #nullable restore
#line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Description)); Write(Html.DisplayNameFor(model => model.Description));
...@@ -109,7 +109,7 @@ using System; ...@@ -109,7 +109,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class = \"col-sm-10\">\r\n "); WriteLiteral("\r\n </dt>\r\n <dd class=\"col-sm-10\">\r\n ");
#nullable restore #nullable restore
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description)); Write(Html.DisplayFor(model => model.Description));
...@@ -117,7 +117,7 @@ using System; ...@@ -117,7 +117,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dd>\r\n <dt class = \"col-sm-2\">\r\n "); WriteLiteral("\r\n </dd>\r\n <dt class=\"col-sm-2\">\r\n ");
#nullable restore #nullable restore
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Category.Name)); Write(Html.DisplayNameFor(model => model.Category.Name));
...@@ -125,7 +125,7 @@ using System; ...@@ -125,7 +125,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class = \"col-sm-10\">\r\n "); WriteLiteral("\r\n </dt>\r\n <dd class=\"col-sm-10\">\r\n ");
#nullable restore #nullable restore
#line 33 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 33 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Category.Name)); Write(Html.DisplayFor(model => model.Category.Name));
...@@ -133,7 +133,7 @@ using System; ...@@ -133,7 +133,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dd>\r\n <dt class = \"col-sm-2\">\r\n "); WriteLiteral("\r\n </dd>\r\n <dt class=\"col-sm-2\">\r\n ");
#nullable restore #nullable restore
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Price)); Write(Html.DisplayNameFor(model => model.Price));
...@@ -141,7 +141,7 @@ using System; ...@@ -141,7 +141,7 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class = \"col-sm-10\">\r\n "); WriteLiteral("\r\n </dt>\r\n <dd class=\"col-sm-10\">\r\n ");
#nullable restore #nullable restore
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" #line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Price)); Write(Html.DisplayFor(model => model.Price));
...@@ -149,10 +149,10 @@ using System; ...@@ -149,10 +149,10 @@ using System;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("\r\n </dd>\r\n </dl>\r\n \r\n "); WriteLiteral("\r\n </dd>\r\n </dl>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e367546a4b9fc101f282705b60c549c64aa41e837708", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f788f576b936745fdd89e96ae1c758f67e6a92377661", async() => {
WriteLiteral("\r\n "); WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e367546a4b9fc101f282705b60c549c64aa41e837974", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f788f576b936745fdd89e96ae1c758f67e6a92377927", async() => {
} }
); );
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
...@@ -175,7 +175,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid ...@@ -175,7 +175,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" /> |\r\n "); WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" /> |\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e367546a4b9fc101f282705b60c549c64aa41e839754", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f788f576b936745fdd89e96ae1c758f67e6a92379707", async() => {
WriteLiteral("Back to List"); WriteLiteral("Back to List");
} }
); );
...@@ -218,7 +218,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid ...@@ -218,7 +218,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<ApplicationCore.Entities.Medicine> Html { get; private set; } public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Medicine> Html { get; private set; }
} }
} }
#pragma warning restore 1591 #pragma warning restore 1591
...@@ -27,7 +27,7 @@ using WebPresentation.Models; ...@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable #nullable disable
#nullable restore #nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml" #line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities; using ApplicationDomain.Entities;
#line default #line default
#line hidden #line hidden
...@@ -40,7 +40,7 @@ using System; ...@@ -40,7 +40,7 @@ using System;
#line hidden #line hidden
#nullable disable #nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"63facbc62168b42781e47ea83818a4a99b4a97d4", @"/Views/Medicine/Details.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"63facbc62168b42781e47ea83818a4a99b4a97d4", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Medicine> public class Views_Medicine_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Medicine>
{ {
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("Avatar"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("Avatar"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
...@@ -96,7 +96,7 @@ using System; ...@@ -96,7 +96,7 @@ using System;
<div class=""col-md-4 gradient-custom text-center text-black"" <div class=""col-md-4 gradient-custom text-center text-black""
style=""border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;""> style=""border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;"">
"); ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "63facbc62168b42781e47ea83818a4a99b4a97d46670", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "63facbc62168b42781e47ea83818a4a99b4a97d46672", async() => {
} }
); );
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
...@@ -138,7 +138,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false); ...@@ -138,7 +138,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
#line hidden #line hidden
#nullable disable #nullable disable
WriteLiteral("</p>\r\n "); WriteLiteral("</p>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d49026", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d49028", async() => {
WriteLiteral("\r\n <i class=\"far fa-edit mb-5\"></i>\r\n "); WriteLiteral("\r\n <i class=\"far fa-edit mb-5\"></i>\r\n ");
} }
); );
...@@ -169,7 +169,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false); ...@@ -169,7 +169,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n "); WriteLiteral("\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d411311", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d411313", async() => {
WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n Go Back\r\n "); WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n Go Back\r\n ");
} }
); );
...@@ -288,7 +288,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false); ...@@ -288,7 +288,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
<div class=""col-6 mb-3""> <div class=""col-6 mb-3"">
<h6>Go To list </h6> <h6>Go To list </h6>
"); ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d417378", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d417380", async() => {
WriteLiteral("Back to List"); WriteLiteral("Back to List");
} }
); );
...@@ -304,7 +304,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false); ...@@ -304,7 +304,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
Write(__tagHelperExecutionContext.Output); Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End(); __tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n <h6>Add Ingredient </h6>\r\n "); WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n <h6>Add Ingredient </h6>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d418764", async() => { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d418766", async() => {
WriteLiteral("Add "); WriteLiteral("Add ");
} }
); );
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment