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

fix

parent 61b786d6
......@@ -11,10 +11,17 @@
<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>
<PackageReference Include="AutoMapper" Version="5.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ApplicationDomain\ApplicationDomain.csproj" />
</ItemGroup>
</Project>
......@@ -5,15 +5,15 @@ using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using ApplicationDomain.Entities;
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 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 IEnumerable<T> GetAll(ISpecification<T> specification);
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApplicationDomain.Entities;
namespace ApplicationCore.Interfaces
{
public interface IUnitOfWork<T> where T : Entities.EntityBase
public interface IUnitOfWork<T> where T : EntityBase
{
IGenericRepository<T> Entity { get; }
......
......@@ -8,9 +8,8 @@ namespace ApplicationCore.Interfaces
{
public interface IService<T> where T : class
{
public IEnumerable<T> GetAll(int Id);
public void Add(int Id, T entity);
public IEnumerable<T> GetAll();
public T Create( T entity);
public T Update(T entity);
public T GetDetails(int Id);
public void Delete(int Id);
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -7,12 +7,14 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices
{
public interface IIngredientService
public interface IIngredientService
{
public IEnumerable<Ingredient> GetAllIngredients();
public void AddIngredient(Ingredient ingredient);
public Ingredient Update(Ingredient ingredient);
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.Collections.Generic;
using System.Linq;
......@@ -7,14 +7,14 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices
{
public interface IMedicalStateService
public interface IMedicalStateService : IService<MedicalState>
{
public IEnumerable<MedicalState> GetAll(int patientId);
public void Add(int patientId , MedicalState medicalState);
public IEnumerable<MedicalState> GetAllPatientMedicalStates(int patientId);
public MedicalState Add(int patientId , MedicalState medicalState);
public void AddMedicine(int medicalStateId, int medicineId);
public MedicalState Update(MedicalState medicalState);
public MedicalState GetDetails(int medicalStateId);
public void Delete(int id);
//public MedicalState Update(MedicalState medicalState);
//public MedicalState GetDetails(int medicalStateId);
//public void Delete(int id);
}
}
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices
{
public interface IPatientService
public interface IPatientService
{
public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId);
......
using ;
namespace ApplicationCore.Mapper
{
class MedicineMapper
{
}
}
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
......@@ -29,9 +29,17 @@ namespace ApplicationCore.Services
_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)
......@@ -52,7 +60,11 @@ namespace ApplicationCore.Services
_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);
}
......@@ -65,6 +77,7 @@ namespace ApplicationCore.Services
public MedicalState Update(MedicalState medicalState)
{
var r = _medicalStateUnitOfWork.Entity.Update(medicalState);
_medicalStateUnitOfWork.Save();
return r;
}
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
......@@ -27,7 +27,7 @@ namespace ApplicationCore.Services
_patientMedicinesSpecification = new PatientMedicinesSpecification();
_medicalStateSpecification = new MedicalStateSpecification();
}
public IEnumerable<MedicalState> GetPatientMedicalStates(int patientId) {
return _patientUnitOfWork.Entity
......@@ -47,17 +47,10 @@ namespace ApplicationCore.Services
}
public void AddMedicalState (int patientId, MedicalState medicalState) {
var ptient = _patientUnitOfWork.Entity.GetById(patientId,_patientMedicinesSpecification);
if (medicalState.Id != 0)
foreach (var i in ptient.MedicalStates)
{
if (i.Id.Equals(medicalState.Id))
return;
}
ptient.MedicalStates
.Add(medicalState
);
ptient.MedicalStates.Add(medicalState);
_patientUnitOfWork.Entity.Update(ptient);
_patientUnitOfWork.Save();
}
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification;
using System;
using System.Collections.Generic;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification;
using System;
using System.Collections.Generic;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification;
using System;
using System.Collections.Generic;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Specification.BaseSpecification;
using System;
using System.Collections.Generic;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using System;
using System.Collections.Generic;
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.Collections.Generic;
using System.Linq;
......
......@@ -24,6 +24,86 @@
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"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": {
"net5.0": {
"targetAlias": "net5.0",
......
......@@ -1581,6 +1581,20 @@
"runtime": {
"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 @@
"system.xml.xmlserializer.4.3.0.nupkg.sha512",
"system.xml.xmlserializer.nuspec"
]
},
"ApplicationDomain/1.0.0": {
"type": "project",
"path": "../ApplicationDomain/ApplicationDomain.csproj",
"msbuildProject": "../ApplicationDomain/ApplicationDomain.csproj"
}
},
"projectFileDependencyGroups": {
"net5.0": [
"ApplicationDomain >= 1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore >= 5.0.17",
"Microsoft.EntityFrameworkCore.Design >= 5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer >= 5.0.17",
......@@ -5978,7 +5998,11 @@
"frameworks": {
"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": {
......
{
"version": 2,
"dgSpecHash": "jCnjOYPZ/LIkG314gAPUJxZpvQXS9u0ekL4i5vzY2KMNhxGwBZXFH3fX9mA53DDK4uIRYj3SJuldbWKJZugHBw==",
"dgSpecHash": "CSp6JRrfKdh1rHdoo3CLiDBLY/YSiTGT4lNyn7paLJjBcTLYON0hBn8ML2M1uO0R0+lyyK44eKrikaOa4Rn5tg==",
"success": true,
"projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\ApplicationCore\\ApplicationCore.csproj",
"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;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class EntityBase
{
......
using Microsoft.AspNetCore.Identity;
using System;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class User :IdentityUser
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class Category : EntityBase
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class Ingredient : EntityBase
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class Medicine : EntityBase
{
......@@ -21,11 +21,10 @@ namespace ApplicationCore.Entities
#region Relations
public ICollection<Ingredient> Ingredients { get; set; }
//public ICollection<Patient> Patients { get; set; }
public ICollection<MedicalState> MedicalStates { get; set; }
public ICollection<MedicalStateMedicine> MedicalStateMedicines { get; set; }
public ICollection<MedicineIngredient> MedicineIngredients { get; set; }
// public ICollection<PatientMedicine> PatientMedicines { get; set; }
#endregion Relations
public void AddIngredient(Ingredient ingredient , int ratio ) {
MedicineIngredients.Add(
......@@ -37,8 +36,7 @@ namespace ApplicationCore.Entities
});
}
#endregion Relations
}
}
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class MedicineIngredient : EntityBase
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class MedicineType : EntityBase
{
......
......@@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
{
namespace ApplicationDomain.Entities
{
public class MedicalState : EntityBase
{
public int PatientId { get; set; }
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class MedicalStateMedicine : EntityBase
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class Patient : EntityBase
{
......
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Entities
namespace ApplicationDomain.Entities
{
public class PatientMedicine : EntityBase
{
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.ISpecification;
using Microsoft.EntityFrameworkCore;
......@@ -31,12 +31,12 @@ namespace Infrastructure.Repository
IQueryable<T> queryable = _table;
queryable = GetQuery(queryable, specification);
return queryable.AsEnumerable();
queryable = GetQuery(queryable, specification);
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
public T Update(T entity)
{
var e =_table.Attach(entity).Entity;
_context.Entry(entity).State = EntityState.Modified;
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;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using Infrastructure.Repository;
using Microsoft.EntityFrameworkCore;
......
020f61ac4adb293b78c3951cdcf4c084d772bcb0
416f34e2a69605f583aecb2cbffaaa655aec8ee0
......@@ -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\Infrastructure.pdb
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 @@
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"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": {
"net5.0": {
"targetAlias": "net5.0",
......
......@@ -1586,6 +1586,7 @@
"type": "project",
"framework": ".NETCoreApp,Version=v5.0",
"dependencies": {
"ApplicationDomain": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
},
......@@ -1595,6 +1596,20 @@
"runtime": {
"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 @@
"type": "project",
"path": "../ApplicationCore/ApplicationCore.csproj",
"msbuildProject": "../ApplicationCore/ApplicationCore.csproj"
},
"ApplicationDomain/1.0.0": {
"type": "project",
"path": "../ApplicationDomain/ApplicationDomain.csproj",
"msbuildProject": "../ApplicationDomain/ApplicationDomain.csproj"
}
},
"projectFileDependencyGroups": {
......
{
"version": 2,
"dgSpecHash": "EOUmFnARv3DJKDgTIi7pOsA+9hSXkiUmuMk1OomFBObaSFbtKNJACixX4CjDh3ePlYzTNiKaM89uMvzqDAAXHw==",
"dgSpecHash": "WMVc6fgmdfsYlIBFKo6fmxyagvo3LLTp3rzBIul04ZEB6LYlqQfYuUVp7w8yH3qRrZfcbavW6j3sgcdTOfbcPw==",
"success": true,
"projectFilePath": "C:\\Users\\HASAN\\Desktop\\Medic\\Infrastructure\\Infrastructure.csproj",
"expectedPackageFiles": [
......
......@@ -5,11 +5,21 @@ VisualStudioVersion = 16.0.34601.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{C87735E8-A66F-49D4-88B7-53FED58FDDF6}"
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
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
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
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -29,14 +39,23 @@ Global
{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.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
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{53B65131-FF5B-41C8-87ED-33C5AC0A1C28} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{E8969D91-BFC0-4AD1-870A-1C15156B0526} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{9BE0BB17-C6D5-4ED8-ABFE-C6F378F0DB07} = {C87735E8-A66F-49D4-88B7-53FED58FDDF6}
{53B65131-FF5B-41C8-87ED-33C5AC0A1C28} = {53898ECD-C6D8-49E8-8F5A-95C227767286}
{E8969D91-BFC0-4AD1-870A-1C15156B0526} = {AF1E0C0C-8A84-4F1B-834E-E4C1BE16F773}
{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
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {80F3DC3F-8C90-4A48-9691-24E1700DECAA}
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.ViewModel;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace WebPresentation.Controllers
......@@ -119,11 +114,11 @@ namespace WebPresentation.Controllers
await _signInManager.SignOutAsync();
if (returnUrl != null)
{
return LocalRedirect(returnUrl);
return Redirect(returnUrl);
}
else
{
return LocalRedirect("/Home/Index");
return Redirect("/Home/Index");
}
}
}
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Specification.BaseSpecification;
using Microsoft.AspNetCore.Authorization;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
......@@ -37,7 +34,7 @@ namespace WebPresentation.Controllers
{
var u = GetUserId();
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);
}
......@@ -84,7 +81,7 @@ namespace WebPresentation.Controllers
if (medicalState.PrescriptionTime == DateTime.MinValue )
medicalState.PrescriptionTime = DateTime.Now;
_medicalStateService.Add(p,medicalState);
return RedirectToAction(nameof(Index));
return RedirectToAction("Details", "MedicalState", new { Id = id });
}
return View(medicalState);
}
......@@ -92,6 +89,17 @@ namespace WebPresentation.Controllers
// GET: Projects/Edit/5
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)
{
return NotFound();
......@@ -110,7 +118,7 @@ namespace WebPresentation.Controllers
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult Edit(int id, MedicalState medicalState)
public IActionResult Edit(int id,int pId , MedicalState medicalState)
{
if (id != medicalState.Id)
{
......@@ -123,17 +131,9 @@ namespace WebPresentation.Controllers
try
{
var uId = GetUserId();
var p = _patientService.GetAll(
)
.Where(
u => u.User.Id == uId
)
.FirstOrDefault();
medicalState.Patient = p;
medicalState.PatientId = p.Id;
_medicalStateService.Update(medicalState);
medicalState.PatientId = pId;
// _patientService.UpdateMedicalState(p.Id, medicalState);
_medicalStateService.Update(medicalState );
}
catch (DbUpdateConcurrencyException)
......@@ -148,7 +148,7 @@ namespace WebPresentation.Controllers
}
*/
}
return RedirectToAction(nameof(Index));
return RedirectToAction("Details","MedicalState",new { Id =id});
}
return View(medicalState);
}
......@@ -186,7 +186,7 @@ namespace WebPresentation.Controllers
[ValidateAntiForgeryToken]
public IActionResult DeleteConfirmed(int id)
{
_medicineService.Delete(id);
_medicalStateService.Delete(id);
return RedirectToAction(nameof(Index));
}
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
......
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
......@@ -30,31 +30,37 @@ namespace WebPresentation
public void ConfigureServices(IServiceCollection services)
{
services.AddScoped<DbContext, MedicDbContext>();
#region ADD Scoped Repository
services.AddScoped(typeof(IUnitOfWork<>),typeof(UnitOfWork<>));
services.AddScoped(typeof(IGenericRepository<>), typeof(GenericRepository<>));
#endregion ADD Scope dRepository
#region ADD Scoped Services
services.AddScoped<IPatientService, PatientService>();
services.AddScoped<IMedicalStateService, MedicalStateService>();
services.AddScoped<IMedicineService, MedicineService>();
services.AddScoped<IIngredientService, IngredientService>();
#endregion ADD Scoped Services
#region ADD DB Context
services.AddDbContext<MedicDbContext>(options => {
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))
;
}
); ;
services.AddSession();
services.AddIdentity<User, IdentityRole>()
# endregion ADD DB Context
#region ADD Identity
services
.AddIdentity<User, IdentityRole>()
.AddEntityFrameworkStores<MedicDbContext>();
#endregion ADD Identity
#region ADD Authentication Schema
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(
options =>
{
......@@ -63,6 +69,9 @@ namespace WebPresentation
options.AccessDeniedPath = "Access/Login";
}
);
#endregion ADD Authentication Schema
services.AddSession();
services.AddControllersWithViews();
......
......@@ -16,6 +16,7 @@
ViewBag.Avatar = Model.User.Avatar;
ViewBag.owner = Model;
var DummyModel = new MedicalState { StateName="state name" , StateDescription="Description" , PrescriptionTime=DateTime.Now};
}
......@@ -53,23 +54,31 @@
</div>
<div class="row">
@if (Model.MedicalStates.Count() == 0)
{
<h2 class="text-center">You dont have any MedicalState</h2>
<img src="~/img/portfolio/noData.jpg" class="figure-img" />
}
else
@foreach (var item in Model.MedicalStates)
<div class="col-lg-4 col-md-6 d-flex align-items-stretch mb-5">
<div class="icon-box">
<div class="icon"><i class="fas fa-heartbeat"></i></div>
<h4> New Medical State</h4>
<p>Click on the Create Button to Create a new Medical State</p>
<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"><i class="fas fa-heartbeat"></i></div>
<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" >
Details</a>
<p class="text-start">Diagonistic : @item.StateDescription<br /> Prescriped at : @(item.PrescriptionTime) </p>
<a data-toggle="modal" data-target="#item-@(item.Id)" class="btn btn-primary">
Details
</a>
</div>
</div>
......@@ -140,11 +149,11 @@
</section>
<!-- Contact Section -->
<section class="page-section" id="contact">
<section class="page-section" id="Create">
<div class="container">
<!-- 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 -->
<div class="divider-custom">
......@@ -159,39 +168,33 @@
<div class="row">
<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. -->
<form name="sentMessage" id="contactForm" novalidate="novalidate">
<div class="control-group">
<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>
<form name="sentMessage" id="contactForm" novalidate="novalidate"
method="post" asp-controller="MedicalState" asp-action="Create">
<div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Email Address</label>
<input class="form-control" id="email" type="email" placeholder="Email Address" required="required" data-validation-required-message="Please enter your email address.">
<label asp-for="@DummyModel.StateName"></label>
<input class="form-control" asp-for="@DummyModel.StateName" data-validation-required-message="Please enter your name.">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Phone Number</label>
<input class="form-control" id="phone" type="tel" placeholder="Phone Number" required="required" data-validation-required-message="Please enter your phone number.">
<label asp-for="@DummyModel.PrescriptionTime" ></label>
<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>
</div>
</div>
<div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2">
<label>Message</label>
<textarea class="form-control" id="message" rows="5" placeholder="Message" required="required" data-validation-required-message="Please enter a message."></textarea>
<label asp-for="@DummyModel.StateDescription"></label>
<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>
</div>
</div>
<br>
<div id="success"></div>
<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>
</form>
</div>
......
@model ApplicationCore.Entities.Ingredient
@model Ingredient
@{
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
}
<h1>Create</h1>
<h4>Ingredient</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
<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;">
<div class="row g-0">
<h1>Create</h1>
<h4>Ingredient</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</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";
......
@model ApplicationCore.Entities.Ingredient
@model Ingredient
@{
ViewData["Title"] = "Details";
......
@model ApplicationCore.Entities.Ingredient;
@model Ingredient;
@{
ViewData["Title"] = "Edit";
......
@model IEnumerable<ApplicationCore.Entities.Ingredient>
@model IEnumerable<Ingredient>
@{
ViewData["Title"] = "Index";
......
@model ApplicationCore.Entities.MedicalState
@model MedicalState
@{
ViewData["Title"] = "Create";
......@@ -6,44 +6,49 @@
}
<h1>Create</h1>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-5">
<label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<input asp-for="StateDescription" class="form-control" />
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
<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;">
<div class="row g-0">
<div class="row">
<div class="col-md-4">
<form asp-action="Create" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-5">
<label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<input asp-for="StateDescription" class="form-control" />
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</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 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 @@
Go Back
</a>
</div>
<div class="col-md-10">
<div class="col">
<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">@Model.StateDescription</p>
<p class="text">@Model.StateDescription</p>
</div>
<div class="col-6 mb-3">
<h6>Medicines Count:@Model.Medicines.Count()</h6>
<a 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="AddMedicine" asp-route-id="@Model.Id">Add Medicine</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>
......
@model ApplicationCore.Entities.MedicalState
@model MedicalState
@{
ViewData["Title"] = "Edit";
......@@ -6,45 +6,49 @@
}
<h1>Create</h1>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-5">
<label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<input asp-for="StateDescription" class="form-control" />
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div>
</div> <input type="hidden" asp-for="Id" />
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<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 p-4">
<div class="card mb-3" style="border-radius: .5rem;">
<form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-5">
<label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<textarea asp-for="StateDescription" class="form-control" >
</textarea>
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div>
</div> <input type="hidden" asp-for="Id" />
<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>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
</div>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
......@@ -4,63 +4,73 @@
ViewData["Title"] = "Medical states ";
}
@foreach(var item in Model){
<section class="page-section">
<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>
@if (Model.Count() == 0)
{
<h2 class="text-center">You dont have any MedicalState</h2>
<img src="~/img/portfolio/noData.jpg" class="figure-img" />
<h3>Create New <a asp-action="Create" asp-controller="MedicalState">Create</a></h3>
}
else
<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>
Go Back
</a>
</div>
<div class="col-md-8">
<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>
<i class="far fa-backward">
</i>
Go Back
</a>
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to Home</a>
<div class="col-md-8">
<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 class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to Home</a>
</div>
<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>
<div class="col-6 mb-3">
</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>
</section>
}
\ No newline at end of file
}
</section>
\ No newline at end of file
@model ApplicationCore.Entities.Medicine
@model Medicine
@{
ViewData["Title"] = "Create";
......
@model ApplicationCore.Entities.Medicine
@model Medicine
@{
ViewData["Title"] = "Delete";
Layout = "_AdminLayout";
}
......@@ -14,32 +14,32 @@
<h4>Medicine</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.TradeName)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.TradeName)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Description)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Category.Name)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Category.Name)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Price)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Price)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
......
@model ApplicationCore.Entities.Medicine;
@model Medicine;
@{
ViewData["Title"] = "Edit";
......
......@@ -45,13 +45,13 @@
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<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 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 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>
<partial name="_LoginPartial" />
......@@ -99,10 +99,10 @@
<!-- Footer About Text -->
<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">
Freelance is a free to use, MIT licensed Bootstrap theme created by
<a href="http://startbootstrap.com">Start Bootstrap</a>.
here is the link to the Dashboard<br />
<a asp-action="Index" asp-controller="Medicine">Click me !.</a>
</p>
</div>
......@@ -113,7 +113,7 @@
<!-- Copyright Section -->
<section class="copyright py-4 text-center text-white">
<div class="container">
<small>Copyright &copy; Your Website 2019</small>
<small>Copyright &copy; Rawad & Hasan 2024</small>
</div>
</section>
......
......@@ -11,7 +11,7 @@
</li>
<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>
......
@using WebPresentation
@using WebPresentation.Models
@using ApplicationCore.Entities
@using ApplicationDomain.Entities;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@using System
\ No newline at end of file
......@@ -5,6 +5,7 @@
</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>
......@@ -20,6 +21,7 @@
<ItemGroup>
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" />
<ProjectReference Include="..\ApplicationDomain\ApplicationDomain.csproj" />
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
</ItemGroup>
......
......@@ -34,6 +34,7 @@
"WebPresentation/1.0.0": {
"dependencies": {
"ApplicationCore": "1.0.0",
"ApplicationDomain": "1.0.0",
"Infrastructure": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.Design": "5.0.17",
......@@ -1874,6 +1875,7 @@
},
"ApplicationCore/1.0.0": {
"dependencies": {
"ApplicationDomain": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.17",
"Microsoft.EntityFrameworkCore.SqlServer": "5.0.17"
},
......@@ -1884,6 +1886,18 @@
"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": {
"dependencies": {
"ApplicationCore": "1.0.0",
......@@ -4475,6 +4489,11 @@
"serviceable": false,
"sha512": ""
},
"ApplicationDomain/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Infrastructure/1.0.0": {
"type": "project",
"serviceable": false,
......
......@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -40,7 +40,7 @@ using System;
#line hidden
#nullable disable
[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>>
{
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);
#line hidden
#nullable disable
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");
}
);
......
......@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -40,7 +40,7 @@ using System;
#line hidden
#nullable disable
[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>
{
#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/>
#pragma warning disable 1591
[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;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -39,9 +39,9 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"00e73f8604b104c122644498f4fe96a4848f4f42", @"/Views/Ingredient/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Ingredient>
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a9c464cd957f4a2db1817e42de1eac9cf0c295d", @"/Views/Ingredient/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
......@@ -118,9 +118,9 @@ using System;
#line hidden
#nullable disable
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 ");
__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>();
......@@ -143,7 +143,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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");
}
);
......@@ -186,7 +186,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[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 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/>
#pragma warning disable 1591
[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;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -39,9 +39,9 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"0c434709446986eb280eaeea2b44638c37fcb4e1", @"/Views/Ingredient/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Ingredient>
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"bd1a3f3afb1c9b5d34889221087c22742e91c4a1", @"/Views/Ingredient/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
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_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;
<div class=""col-md-4 gradient-custom text-center text-black""
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>();
......@@ -127,7 +127,7 @@ using System;
#line hidden
#nullable disable
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 ");
}
);
......@@ -158,7 +158,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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 ");
}
);
......@@ -216,7 +216,7 @@ using System;
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[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 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/>
#pragma warning disable 1591
[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;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -39,9 +39,9 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"405454782c1c09540c1a8ce60bddc7666b62d526", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<ApplicationCore.Entities.Ingredient>>
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f3fbdb77aff3a05ddb7740f44f7b5402680a6cb6", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredient", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
......@@ -190,7 +190,7 @@ using System;
#line hidden
#nullable disable
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>");
}
);
......@@ -223,7 +223,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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>");
}
);
......@@ -256,7 +256,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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>");
}
);
......@@ -308,7 +308,7 @@ using System;
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[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
......@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -40,7 +40,7 @@ using System;
#line hidden
#nullable disable
[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>>
{
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;
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
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 ");
__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");
#nullable restore
#line 15 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml"
......@@ -88,7 +88,7 @@ using System;
#line hidden
#nullable disable
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
#line 17 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\AddIngredints.cshtml"
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/>
#pragma warning disable 1591
[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;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -39,9 +39,9 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e367546a4b9fc101f282705b60c549c64aa41e83", @"/Views/Medicine/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Medicine>
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f788f576b936745fdd89e96ae1c758f67e6a9237", @"/Views/Medicine/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6fffd8dfe80957a1cbddaf47a216a7c128d6cf7", @"/Views/_ViewImports.cshtml")]
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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
......@@ -79,13 +79,13 @@ using System;
ViewData["Title"] = "Delete";
Layout = "_AdminLayout";
#line default
#line hidden
#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
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.TradeName));
......@@ -93,7 +93,7 @@ using System;
#line default
#line hidden
#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
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.TradeName));
......@@ -101,7 +101,7 @@ using System;
#line default
#line hidden
#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
#line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Description));
......@@ -109,7 +109,7 @@ using System;
#line default
#line hidden
#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
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description));
......@@ -117,7 +117,7 @@ using System;
#line default
#line hidden
#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
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Category.Name));
......@@ -125,7 +125,7 @@ using System;
#line default
#line hidden
#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
#line 33 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Category.Name));
......@@ -133,7 +133,7 @@ using System;
#line default
#line hidden
#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
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Price));
......@@ -141,7 +141,7 @@ using System;
#line default
#line hidden
#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
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Price));
......@@ -149,10 +149,10 @@ using System;
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n </dl>\r\n \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e367546a4b9fc101f282705b60c549c64aa41e837708", async() => {
WriteLiteral("\r\n </dd>\r\n </dl>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f788f576b936745fdd89e96ae1c758f67e6a92377661", async() => {
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>();
......@@ -175,7 +175,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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");
}
);
......@@ -218,7 +218,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[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
......@@ -27,7 +27,7 @@ using WebPresentation.Models;
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
using ApplicationDomain.Entities;
#line default
#line hidden
......@@ -40,7 +40,7 @@ using System;
#line hidden
#nullable disable
[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>
{
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;
<div class=""col-md-4 gradient-custom text-center text-black""
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>();
......@@ -138,7 +138,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
#line hidden
#nullable disable
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 ");
}
);
......@@ -169,7 +169,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
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 ");
}
);
......@@ -288,7 +288,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
<div class=""col-6 mb-3"">
<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");
}
);
......@@ -304,7 +304,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
Write(__tagHelperExecutionContext.Output);
__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 ");
__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 ");
}
);
......
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