Commit 61b786d6 authored by hasan khaddour's avatar hasan khaddour

update identity

parent 5f496869
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
{
public interface IService<T> where T : class
{
public IEnumerable<T> GetAll(int Id);
public void Add(int Id, T entity);
public T Update(T entity);
public T GetDetails(int Id);
public void Delete(int Id);
}
}
using ApplicationCore.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces.IServices
{
public interface IMedicalStateService
{
public IEnumerable<MedicalState> GetAll(int patientId);
public void 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);
}
}
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
using System;
using System.Collections.Generic;
......@@ -7,9 +8,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Services.IngredientService
namespace ApplicationCore.Services
{
public class IngredientService
public class IngredientService :IIngredientService
{
private readonly IUnitOfWork<Ingredient> _ingredientUnitOfWork;
private IngredientSpecification _IngredientSpecification;
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
namespace ApplicationCore.Services
{
public class MedicalStateService : IMedicalStateService
{
private readonly IUnitOfWork<MedicalState> _medicalStateUnitOfWork;
private readonly PatientService _patientService;
private readonly IUnitOfWork<Medicine> _medicineUnitOfWork;
private readonly MedicalStateSpecification _medicalStateSpecification;
private readonly MedicineIngredientSpecification _medicineSpecification;
public MedicalStateService(
IUnitOfWork<MedicalState> medicalUnitOfWork,
IUnitOfWork<Medicine> medicineUnitOfWork,
IUnitOfWork<Patient> patientUnitOfWork
)
{
_medicalStateUnitOfWork = medicalUnitOfWork;
_medicalStateSpecification = new MedicalStateSpecification();
_medicineUnitOfWork = medicineUnitOfWork;
_patientService = new PatientService(patientUnitOfWork,medicalUnitOfWork);
}
public void Add(int patientId , MedicalState medicalState)
{
_patientService.AddMedicalState(patientId, medicalState);
}
public void AddMedicine(int medicalStateId, int medicineId)
{
var m = _medicalStateUnitOfWork.Entity.GetById(medicalStateId, _medicalStateSpecification);
if (m.Medicines is null)
m.Medicines = new List<Medicine>();
var d =_medicineUnitOfWork.Entity.GetById(medicineId,_medicineSpecification );
m.Medicines.Add(d );
_medicalStateUnitOfWork.Entity.Update(m);
_medicalStateUnitOfWork.Save();
}
public void Delete(int id)
{
_medicalStateUnitOfWork.Entity.Delete(id);
_medicalStateUnitOfWork.Save();
}
public IEnumerable<MedicalState> GetAll(int patientId)
{
return _patientService.GetPatientMedicalStates(patientId);
}
public MedicalState GetDetails(int medicalStateId)
{
return _patientService.GetMedicalStateDetails(medicalStateId);
}
public MedicalState Update(MedicalState medicalState)
{
var r = _medicalStateUnitOfWork.Entity.Update(medicalState);
_medicalStateUnitOfWork.Save();
return r;
}
}
}
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Specification;
using System;
using System.Collections.Generic;
......@@ -7,9 +8,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Services.MedicineService
namespace ApplicationCore.Services
{
public class MedicineService
public class MedicineService : IMedicineService
{
private readonly IUnitOfWork<Medicine> _medicineUnitOfWork;
private MedicineIngredientSpecification _medicineIngredientSpecification;
......
......@@ -9,7 +9,7 @@ using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Services.PatientService
namespace ApplicationCore.Services
{
public class PatientService : IPatientService
{
......
......@@ -19,10 +19,12 @@ namespace ApplicationCore.Specification
AddInclude(p => p.Patient);
AddThenInclude("MedicalStateMedicines.Medicine");
AddThenInclude("Medicines.Category");
AddThenInclude("Medicines.MedicineType");
}
}
{
}
}
......@@ -187,10 +187,6 @@ namespace Infrastructure.Data
new Ingredient { Id = 1, Name = "Amoxicillin" },
new Ingredient { Id = 2, Name = "Paracetamol" }
);
modelBuilder.Entity<MedicineIngredient>().HasData(
new MedicineIngredient { MedicineId = 1, IngredientId = 1 },
new MedicineIngredient { MedicineId = 2, IngredientId = 2 }
);
#endregion Ingredients
#region Medicines
var med = new Medicine
......@@ -198,19 +194,32 @@ namespace Infrastructure.Data
Id=1,
ScintificName = "Augmentine",
TradeName="Augmentine",
Description="antibitic mdicine",
ManufactureName="Ibin Sina",
SideEffect="No. ",
Category=c1 ,
//Category=c1 ,
Image="med1.png",
Dosage = 12,
Price = 2500,
};
// modelBuilder.Entity<MedicineIngredient>().HasData(
// new MedicineIngredient { Id = 1, MedicineId = 1, IngredientId = 1 },
// new MedicineIngredient { Id = 2, MedicineId = 2, IngredientId = 2 }
//);
modelBuilder.Entity<Medicine>().HasData(med);
#endregion Medicines
#region MedicalState
var st = new MedicalState
{
Id=1,
PatientId=1,
PrescriptionTime=DateTime.Now,
};
modelBuilder.Entity<MedicalState>().HasData(st);
#endregion MedicalState
}
}
......
......@@ -21,8 +21,4 @@
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
</Project>
......@@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Infrastructure.Migrations
{
[DbContext(typeof(MedicDbContext))]
[Migration("20240531143822_identityUpdat")]
partial class identityUpdat
[Migration("20240601093347_AddMedicalstate")]
partial class AddMedicalstate
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
......@@ -40,7 +40,12 @@ namespace Infrastructure.Migrations
new
{
Id = 1,
Name = "Augmentine"
Name = "Antibiotic"
},
new
{
Id = 2,
Name = "Painkiller"
});
});
......@@ -60,6 +65,74 @@ namespace Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Ingredients");
b.HasData(
new
{
Id = 1,
Name = "Amoxicillin"
},
new
{
Id = 2,
Name = "Paracetamol"
});
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("PatientId")
.HasColumnType("int");
b.Property<DateTime>("PrescriptionTime")
.HasColumnType("datetime2");
b.Property<string>("StateDescription")
.HasColumnType("nvarchar(max)");
b.Property<string>("StateName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("PatientId");
b.ToTable("MedicalStates");
b.HasData(
new
{
Id = 1,
PatientId = 1,
PrescriptionTime = new DateTime(2024, 6, 1, 12, 33, 45, 887, DateTimeKind.Local).AddTicks(8926)
});
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalStateMedicine", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("MedicalStateId")
.HasColumnType("int");
b.Property<int>("MedicineId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("MedicalStateId");
b.HasIndex("MedicineId");
b.ToTable("MedicalStateMedicine");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
......@@ -81,15 +154,24 @@ namespace Infrastructure.Migrations
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ManufactureName")
.HasColumnType("nvarchar(max)");
b.Property<int?>("MedicineTypeId")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<int>("Price")
.HasColumnType("int");
b.Property<string>("ScintificName")
.HasColumnType("nvarchar(max)");
b.Property<string>("SideEffect")
.HasColumnType("nvarchar(max)");
b.Property<string>("TradeName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
......@@ -101,11 +183,15 @@ namespace Infrastructure.Migrations
b.HasData(
new
{
Id = -1,
Id = 1,
Description = "antibitic mdicine",
Dosage = 12,
Image = "med1.png",
Name = "Augmentine",
Price = 2500
ManufactureName = "Ibin Sina",
Price = 2500,
ScintificName = "Augmentine",
SideEffect = "No. ",
TradeName = "Augmentine"
});
});
......@@ -147,6 +233,18 @@ namespace Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("MedicineTypes");
b.HasData(
new
{
Id = 1,
TypeName = "Tablet"
},
new
{
Id = 2,
TypeName = "Syrup"
});
});
modelBuilder.Entity("ApplicationCore.Entities.Patient", b =>
......@@ -179,31 +277,6 @@ namespace Infrastructure.Migrations
});
});
modelBuilder.Entity("ApplicationCore.Entities.PatientMedicine", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("MedicineId")
.HasColumnType("int");
b.Property<int>("PatientId")
.HasColumnType("int");
b.Property<DateTime>("PrescripDate")
.HasColumnType("datetime2");
b.HasKey("Id");
b.HasIndex("MedicineId");
b.HasIndex("PatientId");
b.ToTable("PatientMedicine");
});
modelBuilder.Entity("ApplicationCore.Entities.User", b =>
{
b.Property<string>("Id")
......@@ -287,8 +360,8 @@ namespace Infrastructure.Migrations
Id = "1",
AccessFailedCount = 0,
Avatar = "avatar.jpg",
ConcurrencyStamp = "9122e783-9528-4e0a-b15d-82345f6f0418",
CreationTime = new DateTime(2024, 5, 31, 17, 38, 21, 491, DateTimeKind.Local).AddTicks(4784),
ConcurrencyStamp = "166ee2cd-0ad4-467f-bd19-99bfa9b2b96e",
CreationTime = new DateTime(2024, 6, 1, 12, 33, 45, 873, DateTimeKind.Local).AddTicks(3497),
Email = "hasan@b",
EmailConfirmed = false,
FirstName = "Hasan",
......@@ -296,9 +369,9 @@ namespace Infrastructure.Migrations
LockoutEnabled = false,
NormalizedEmail = "hasan@b",
NormalizedUserName = "Hasan.Bahjat",
PasswordHash = "AQAAAAEAACcQAAAAEJwazDmiC7dJqkx0ZQHpN6lKVdLp1MlBxIx4e5ZcqF+gkiJTfUb/OJOI6LYXXw8o2A==",
PasswordHash = "AQAAAAEAACcQAAAAEJ0fBRaO45ScU6Ei66Jp2vepLKOv6d6fHWIoI5HIIFU6VQDnUzmaA3IhyhbtT/KcNw==",
PhoneNumberConfirmed = false,
SecurityStamp = "3fe96d52-7dbf-46c8-b9ff-2bf6819fbeac",
SecurityStamp = "1af74e67-0e8a-4827-a64c-d7da0b4f425a",
TwoFactorEnabled = false,
UserName = "Hasan.Bahjat"
},
......@@ -307,8 +380,8 @@ namespace Infrastructure.Migrations
Id = "2",
AccessFailedCount = 0,
Avatar = "avatar1.jpg",
ConcurrencyStamp = "6ef31db3-4cc6-40c1-9082-3dca1d055c9a",
CreationTime = new DateTime(2024, 5, 31, 17, 38, 21, 508, DateTimeKind.Local).AddTicks(9726),
ConcurrencyStamp = "8dbe8b06-155f-4a9e-9e68-3ed47b0a7f69",
CreationTime = new DateTime(2024, 6, 1, 12, 33, 45, 886, DateTimeKind.Local).AddTicks(2019),
Email = "hasan.bahjat@mail.y",
EmailConfirmed = false,
FirstName = "Hasan",
......@@ -316,9 +389,9 @@ namespace Infrastructure.Migrations
LockoutEnabled = false,
NormalizedEmail = "hasan@b",
NormalizedUserName = "Hasan.khaddour",
PasswordHash = "AQAAAAEAACcQAAAAEDWozHY53JhRnMlp3wyKL2X6zVG8Rgd8AQSP7OHCui5ObaKA6p2dpcg6EVjXzMc99Q==",
PasswordHash = "AQAAAAEAACcQAAAAEBFPNGBwPL/f3/1bZ453ogAMvnVvqvaySCgoUft4De5riMniqppK7H/zipFff8XFgA==",
PhoneNumberConfirmed = false,
SecurityStamp = "df27679f-e318-49b0-af02-2ebd01b2ef40",
SecurityStamp = "eb16351d-865c-4e4f-9220-d46441abaacd",
TwoFactorEnabled = false,
UserName = "Hasan.Khaddour"
});
......@@ -355,14 +428,14 @@ namespace Infrastructure.Migrations
new
{
Id = "1-2-1",
ConcurrencyStamp = "e90561ea-fc91-4e43-9090-6967145f6f5b",
ConcurrencyStamp = "79801859-19d1-49e6-a817-586cede3bf9c",
Name = "Admin",
NormalizedName = "Admin"
},
new
{
Id = "1",
ConcurrencyStamp = "28134bcc-f733-40be-8d2e-bface932cc86",
ConcurrencyStamp = "6a86886f-aeb2-41fa-9884-44dee37b46c6",
Name = "patient",
NormalizedName = "patient"
});
......@@ -484,6 +557,36 @@ namespace Infrastructure.Migrations
b.ToTable("AspNetUserTokens");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.HasOne("ApplicationCore.Entities.Patient", "Patient")
.WithMany("MedicalStates")
.HasForeignKey("PatientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Patient");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalStateMedicine", b =>
{
b.HasOne("ApplicationCore.Entities.MedicalState", "MedicalState")
.WithMany("MedicalStateMedicines")
.HasForeignKey("MedicalStateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("ApplicationCore.Entities.Medicine", "Medicine")
.WithMany("MedicalStateMedicines")
.HasForeignKey("MedicineId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("MedicalState");
b.Navigation("Medicine");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
{
b.HasOne("ApplicationCore.Entities.Category", "Category")
......@@ -527,25 +630,6 @@ namespace Infrastructure.Migrations
b.Navigation("User");
});
modelBuilder.Entity("ApplicationCore.Entities.PatientMedicine", b =>
{
b.HasOne("ApplicationCore.Entities.Medicine", "Medicine")
.WithMany("PatientMedicines")
.HasForeignKey("MedicineId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("ApplicationCore.Entities.Patient", "Patient")
.WithMany("PatientMedicines")
.HasForeignKey("PatientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Medicine");
b.Navigation("Patient");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
......@@ -607,11 +691,16 @@ namespace Infrastructure.Migrations
b.Navigation("MedicineIngredients");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.Navigation("MedicalStateMedicines");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
{
b.Navigation("MedicineIngredients");
b.Navigation("MedicalStateMedicines");
b.Navigation("PatientMedicines");
b.Navigation("MedicineIngredients");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicineType", b =>
......@@ -621,7 +710,7 @@ namespace Infrastructure.Migrations
modelBuilder.Entity("ApplicationCore.Entities.Patient", b =>
{
b.Navigation("PatientMedicines");
b.Navigation("MedicalStates");
});
modelBuilder.Entity("ApplicationCore.Entities.User", b =>
......
......@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace Infrastructure.Migrations
{
public partial class identityUpdat : Migration
public partial class AddMedicalstate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
......@@ -222,7 +222,10 @@ namespace Infrastructure.Migrations
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
TradeName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ScintificName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ManufactureName = table.Column<string>(type: "nvarchar(max)", nullable: true),
SideEffect = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Price = table.Column<int>(type: "int", nullable: false),
Image = table.Column<string>(type: "nvarchar(max)", nullable: true),
......@@ -247,6 +250,28 @@ namespace Infrastructure.Migrations
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "MedicalStates",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PatientId = table.Column<int>(type: "int", nullable: false),
StateName = table.Column<string>(type: "nvarchar(max)", nullable: true),
StateDescription = table.Column<string>(type: "nvarchar(max)", nullable: true),
PrescriptionTime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_MedicalStates", x => x.Id);
table.ForeignKey(
name: "FK_MedicalStates_Patients_PatientId",
column: x => x.PatientId,
principalTable: "Patients",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "MedicineIngredient",
columns: table => new
......@@ -275,28 +300,27 @@ namespace Infrastructure.Migrations
});
migrationBuilder.CreateTable(
name: "PatientMedicine",
name: "MedicalStateMedicine",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PrescripDate = table.Column<DateTime>(type: "datetime2", nullable: false),
MedicineId = table.Column<int>(type: "int", nullable: false),
PatientId = table.Column<int>(type: "int", nullable: false)
MedicalStateId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PatientMedicine", x => x.Id);
table.PrimaryKey("PK_MedicalStateMedicine", x => x.Id);
table.ForeignKey(
name: "FK_PatientMedicine_Medicines_MedicineId",
column: x => x.MedicineId,
principalTable: "Medicines",
name: "FK_MedicalStateMedicine_MedicalStates_MedicalStateId",
column: x => x.MedicalStateId,
principalTable: "MedicalStates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_PatientMedicine_Patients_PatientId",
column: x => x.PatientId,
principalTable: "Patients",
name: "FK_MedicalStateMedicine_Medicines_MedicineId",
column: x => x.MedicineId,
principalTable: "Medicines",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
......@@ -306,8 +330,8 @@ namespace Infrastructure.Migrations
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
values: new object[,]
{
{ "1-2-1", "e90561ea-fc91-4e43-9090-6967145f6f5b", "Admin", "Admin" },
{ "1", "28134bcc-f733-40be-8d2e-bface932cc86", "patient", "patient" }
{ "1-2-1", "79801859-19d1-49e6-a817-586cede3bf9c", "Admin", "Admin" },
{ "1", "6a86886f-aeb2-41fa-9884-44dee37b46c6", "patient", "patient" }
});
migrationBuilder.InsertData(
......@@ -315,19 +339,41 @@ namespace Infrastructure.Migrations
columns: new[] { "Id", "AccessFailedCount", "Avatar", "ConcurrencyStamp", "CreationTime", "Email", "EmailConfirmed", "FirstName", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
values: new object[,]
{
{ "1", 0, "avatar.jpg", "9122e783-9528-4e0a-b15d-82345f6f0418", new DateTime(2024, 5, 31, 17, 38, 21, 491, DateTimeKind.Local).AddTicks(4784), "hasan@b", false, "Hasan", "Kh", false, null, "hasan@b", "Hasan.Bahjat", "AQAAAAEAACcQAAAAEJwazDmiC7dJqkx0ZQHpN6lKVdLp1MlBxIx4e5ZcqF+gkiJTfUb/OJOI6LYXXw8o2A==", null, false, "3fe96d52-7dbf-46c8-b9ff-2bf6819fbeac", false, "Hasan.Bahjat" },
{ "2", 0, "avatar1.jpg", "6ef31db3-4cc6-40c1-9082-3dca1d055c9a", new DateTime(2024, 5, 31, 17, 38, 21, 508, DateTimeKind.Local).AddTicks(9726), "hasan.bahjat@mail.y", false, "Hasan", "Khaddour", false, null, "hasan@b", "Hasan.khaddour", "AQAAAAEAACcQAAAAEDWozHY53JhRnMlp3wyKL2X6zVG8Rgd8AQSP7OHCui5ObaKA6p2dpcg6EVjXzMc99Q==", null, false, "df27679f-e318-49b0-af02-2ebd01b2ef40", false, "Hasan.Khaddour" }
{ "1", 0, "avatar.jpg", "166ee2cd-0ad4-467f-bd19-99bfa9b2b96e", new DateTime(2024, 6, 1, 12, 33, 45, 873, DateTimeKind.Local).AddTicks(3497), "hasan@b", false, "Hasan", "Kh", false, null, "hasan@b", "Hasan.Bahjat", "AQAAAAEAACcQAAAAEJ0fBRaO45ScU6Ei66Jp2vepLKOv6d6fHWIoI5HIIFU6VQDnUzmaA3IhyhbtT/KcNw==", null, false, "1af74e67-0e8a-4827-a64c-d7da0b4f425a", false, "Hasan.Bahjat" },
{ "2", 0, "avatar1.jpg", "8dbe8b06-155f-4a9e-9e68-3ed47b0a7f69", new DateTime(2024, 6, 1, 12, 33, 45, 886, DateTimeKind.Local).AddTicks(2019), "hasan.bahjat@mail.y", false, "Hasan", "Khaddour", false, null, "hasan@b", "Hasan.khaddour", "AQAAAAEAACcQAAAAEBFPNGBwPL/f3/1bZ453ogAMvnVvqvaySCgoUft4De5riMniqppK7H/zipFff8XFgA==", null, false, "eb16351d-865c-4e4f-9220-d46441abaacd", false, "Hasan.Khaddour" }
});
migrationBuilder.InsertData(
table: "Categories",
columns: new[] { "Id", "Name" },
values: new object[] { 1, "Augmentine" });
values: new object[,]
{
{ 1, "Antibiotic" },
{ 2, "Painkiller" }
});
migrationBuilder.InsertData(
table: "Ingredients",
columns: new[] { "Id", "Description", "Name" },
values: new object[,]
{
{ 1, null, "Amoxicillin" },
{ 2, null, "Paracetamol" }
});
migrationBuilder.InsertData(
table: "MedicineTypes",
columns: new[] { "Id", "TypeName" },
values: new object[,]
{
{ 1, "Tablet" },
{ 2, "Syrup" }
});
migrationBuilder.InsertData(
table: "Medicines",
columns: new[] { "Id", "CategoryId", "Description", "Dosage", "Image", "MedicineTypeId", "Name", "Price" },
values: new object[] { -1, null, null, 12, "med1.png", null, "Augmentine", 2500 });
columns: new[] { "Id", "CategoryId", "Description", "Dosage", "Image", "ManufactureName", "MedicineTypeId", "Price", "ScintificName", "SideEffect", "TradeName" },
values: new object[] { 1, null, "antibitic mdicine", 12, "med1.png", "Ibin Sina", null, 2500, "Augmentine", "No. ", "Augmentine" });
migrationBuilder.InsertData(
table: "AspNetUserRoles",
......@@ -344,6 +390,11 @@ namespace Infrastructure.Migrations
columns: new[] { "Id", "BIO", "UserId" },
values: new object[] { 1, "a Patient ", "2" });
migrationBuilder.InsertData(
table: "MedicalStates",
columns: new[] { "Id", "PatientId", "PrescriptionTime", "StateDescription", "StateName" },
values: new object[] { 1, 1, new DateTime(2024, 6, 1, 12, 33, 45, 887, DateTimeKind.Local).AddTicks(8926), null, null });
migrationBuilder.CreateIndex(
name: "IX_AspNetRoleClaims_RoleId",
table: "AspNetRoleClaims",
......@@ -383,6 +434,21 @@ namespace Infrastructure.Migrations
unique: true,
filter: "[NormalizedUserName] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_MedicalStateMedicine_MedicalStateId",
table: "MedicalStateMedicine",
column: "MedicalStateId");
migrationBuilder.CreateIndex(
name: "IX_MedicalStateMedicine_MedicineId",
table: "MedicalStateMedicine",
column: "MedicineId");
migrationBuilder.CreateIndex(
name: "IX_MedicalStates_PatientId",
table: "MedicalStates",
column: "PatientId");
migrationBuilder.CreateIndex(
name: "IX_MedicineIngredient_IngredientId",
table: "MedicineIngredient",
......@@ -403,16 +469,6 @@ namespace Infrastructure.Migrations
table: "Medicines",
column: "MedicineTypeId");
migrationBuilder.CreateIndex(
name: "IX_PatientMedicine_MedicineId",
table: "PatientMedicine",
column: "MedicineId");
migrationBuilder.CreateIndex(
name: "IX_PatientMedicine_PatientId",
table: "PatientMedicine",
column: "PatientId");
migrationBuilder.CreateIndex(
name: "IX_Patients_UserId",
table: "Patients",
......@@ -439,14 +495,17 @@ namespace Infrastructure.Migrations
name: "AspNetUserTokens");
migrationBuilder.DropTable(
name: "MedicineIngredient");
name: "MedicalStateMedicine");
migrationBuilder.DropTable(
name: "PatientMedicine");
name: "MedicineIngredient");
migrationBuilder.DropTable(
name: "AspNetRoles");
migrationBuilder.DropTable(
name: "MedicalStates");
migrationBuilder.DropTable(
name: "Ingredients");
......
......@@ -38,7 +38,12 @@ namespace Infrastructure.Migrations
new
{
Id = 1,
Name = "Augmentine"
Name = "Antibiotic"
},
new
{
Id = 2,
Name = "Painkiller"
});
});
......@@ -58,6 +63,74 @@ namespace Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Ingredients");
b.HasData(
new
{
Id = 1,
Name = "Amoxicillin"
},
new
{
Id = 2,
Name = "Paracetamol"
});
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("PatientId")
.HasColumnType("int");
b.Property<DateTime>("PrescriptionTime")
.HasColumnType("datetime2");
b.Property<string>("StateDescription")
.HasColumnType("nvarchar(max)");
b.Property<string>("StateName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("PatientId");
b.ToTable("MedicalStates");
b.HasData(
new
{
Id = 1,
PatientId = 1,
PrescriptionTime = new DateTime(2024, 6, 1, 12, 33, 45, 887, DateTimeKind.Local).AddTicks(8926)
});
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalStateMedicine", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("MedicalStateId")
.HasColumnType("int");
b.Property<int>("MedicineId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("MedicalStateId");
b.HasIndex("MedicineId");
b.ToTable("MedicalStateMedicine");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
......@@ -79,15 +152,24 @@ namespace Infrastructure.Migrations
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ManufactureName")
.HasColumnType("nvarchar(max)");
b.Property<int?>("MedicineTypeId")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<int>("Price")
.HasColumnType("int");
b.Property<string>("ScintificName")
.HasColumnType("nvarchar(max)");
b.Property<string>("SideEffect")
.HasColumnType("nvarchar(max)");
b.Property<string>("TradeName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
......@@ -99,11 +181,15 @@ namespace Infrastructure.Migrations
b.HasData(
new
{
Id = -1,
Id = 1,
Description = "antibitic mdicine",
Dosage = 12,
Image = "med1.png",
Name = "Augmentine",
Price = 2500
ManufactureName = "Ibin Sina",
Price = 2500,
ScintificName = "Augmentine",
SideEffect = "No. ",
TradeName = "Augmentine"
});
});
......@@ -145,6 +231,18 @@ namespace Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("MedicineTypes");
b.HasData(
new
{
Id = 1,
TypeName = "Tablet"
},
new
{
Id = 2,
TypeName = "Syrup"
});
});
modelBuilder.Entity("ApplicationCore.Entities.Patient", b =>
......@@ -177,31 +275,6 @@ namespace Infrastructure.Migrations
});
});
modelBuilder.Entity("ApplicationCore.Entities.PatientMedicine", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("MedicineId")
.HasColumnType("int");
b.Property<int>("PatientId")
.HasColumnType("int");
b.Property<DateTime>("PrescripDate")
.HasColumnType("datetime2");
b.HasKey("Id");
b.HasIndex("MedicineId");
b.HasIndex("PatientId");
b.ToTable("PatientMedicine");
});
modelBuilder.Entity("ApplicationCore.Entities.User", b =>
{
b.Property<string>("Id")
......@@ -285,8 +358,8 @@ namespace Infrastructure.Migrations
Id = "1",
AccessFailedCount = 0,
Avatar = "avatar.jpg",
ConcurrencyStamp = "9122e783-9528-4e0a-b15d-82345f6f0418",
CreationTime = new DateTime(2024, 5, 31, 17, 38, 21, 491, DateTimeKind.Local).AddTicks(4784),
ConcurrencyStamp = "166ee2cd-0ad4-467f-bd19-99bfa9b2b96e",
CreationTime = new DateTime(2024, 6, 1, 12, 33, 45, 873, DateTimeKind.Local).AddTicks(3497),
Email = "hasan@b",
EmailConfirmed = false,
FirstName = "Hasan",
......@@ -294,9 +367,9 @@ namespace Infrastructure.Migrations
LockoutEnabled = false,
NormalizedEmail = "hasan@b",
NormalizedUserName = "Hasan.Bahjat",
PasswordHash = "AQAAAAEAACcQAAAAEJwazDmiC7dJqkx0ZQHpN6lKVdLp1MlBxIx4e5ZcqF+gkiJTfUb/OJOI6LYXXw8o2A==",
PasswordHash = "AQAAAAEAACcQAAAAEJ0fBRaO45ScU6Ei66Jp2vepLKOv6d6fHWIoI5HIIFU6VQDnUzmaA3IhyhbtT/KcNw==",
PhoneNumberConfirmed = false,
SecurityStamp = "3fe96d52-7dbf-46c8-b9ff-2bf6819fbeac",
SecurityStamp = "1af74e67-0e8a-4827-a64c-d7da0b4f425a",
TwoFactorEnabled = false,
UserName = "Hasan.Bahjat"
},
......@@ -305,8 +378,8 @@ namespace Infrastructure.Migrations
Id = "2",
AccessFailedCount = 0,
Avatar = "avatar1.jpg",
ConcurrencyStamp = "6ef31db3-4cc6-40c1-9082-3dca1d055c9a",
CreationTime = new DateTime(2024, 5, 31, 17, 38, 21, 508, DateTimeKind.Local).AddTicks(9726),
ConcurrencyStamp = "8dbe8b06-155f-4a9e-9e68-3ed47b0a7f69",
CreationTime = new DateTime(2024, 6, 1, 12, 33, 45, 886, DateTimeKind.Local).AddTicks(2019),
Email = "hasan.bahjat@mail.y",
EmailConfirmed = false,
FirstName = "Hasan",
......@@ -314,9 +387,9 @@ namespace Infrastructure.Migrations
LockoutEnabled = false,
NormalizedEmail = "hasan@b",
NormalizedUserName = "Hasan.khaddour",
PasswordHash = "AQAAAAEAACcQAAAAEDWozHY53JhRnMlp3wyKL2X6zVG8Rgd8AQSP7OHCui5ObaKA6p2dpcg6EVjXzMc99Q==",
PasswordHash = "AQAAAAEAACcQAAAAEBFPNGBwPL/f3/1bZ453ogAMvnVvqvaySCgoUft4De5riMniqppK7H/zipFff8XFgA==",
PhoneNumberConfirmed = false,
SecurityStamp = "df27679f-e318-49b0-af02-2ebd01b2ef40",
SecurityStamp = "eb16351d-865c-4e4f-9220-d46441abaacd",
TwoFactorEnabled = false,
UserName = "Hasan.Khaddour"
});
......@@ -353,14 +426,14 @@ namespace Infrastructure.Migrations
new
{
Id = "1-2-1",
ConcurrencyStamp = "e90561ea-fc91-4e43-9090-6967145f6f5b",
ConcurrencyStamp = "79801859-19d1-49e6-a817-586cede3bf9c",
Name = "Admin",
NormalizedName = "Admin"
},
new
{
Id = "1",
ConcurrencyStamp = "28134bcc-f733-40be-8d2e-bface932cc86",
ConcurrencyStamp = "6a86886f-aeb2-41fa-9884-44dee37b46c6",
Name = "patient",
NormalizedName = "patient"
});
......@@ -482,6 +555,36 @@ namespace Infrastructure.Migrations
b.ToTable("AspNetUserTokens");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.HasOne("ApplicationCore.Entities.Patient", "Patient")
.WithMany("MedicalStates")
.HasForeignKey("PatientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Patient");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalStateMedicine", b =>
{
b.HasOne("ApplicationCore.Entities.MedicalState", "MedicalState")
.WithMany("MedicalStateMedicines")
.HasForeignKey("MedicalStateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("ApplicationCore.Entities.Medicine", "Medicine")
.WithMany("MedicalStateMedicines")
.HasForeignKey("MedicineId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("MedicalState");
b.Navigation("Medicine");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
{
b.HasOne("ApplicationCore.Entities.Category", "Category")
......@@ -525,25 +628,6 @@ namespace Infrastructure.Migrations
b.Navigation("User");
});
modelBuilder.Entity("ApplicationCore.Entities.PatientMedicine", b =>
{
b.HasOne("ApplicationCore.Entities.Medicine", "Medicine")
.WithMany("PatientMedicines")
.HasForeignKey("MedicineId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("ApplicationCore.Entities.Patient", "Patient")
.WithMany("PatientMedicines")
.HasForeignKey("PatientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Medicine");
b.Navigation("Patient");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
......@@ -605,11 +689,16 @@ namespace Infrastructure.Migrations
b.Navigation("MedicineIngredients");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicalState", b =>
{
b.Navigation("MedicalStateMedicines");
});
modelBuilder.Entity("ApplicationCore.Entities.Medicine", b =>
{
b.Navigation("MedicineIngredients");
b.Navigation("MedicalStateMedicines");
b.Navigation("PatientMedicines");
b.Navigation("MedicineIngredients");
});
modelBuilder.Entity("ApplicationCore.Entities.MedicineType", b =>
......@@ -619,7 +708,7 @@ namespace Infrastructure.Migrations
modelBuilder.Entity("ApplicationCore.Entities.Patient", b =>
{
b.Navigation("PatientMedicines");
b.Navigation("MedicalStates");
});
modelBuilder.Entity("ApplicationCore.Entities.User", b =>
......
86b4a36b27ca89275e50461b3805a94292ff7dbf
020f61ac4adb293b78c3951cdcf4c084d772bcb0
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Specification.BaseSpecification;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
......@@ -13,6 +15,7 @@ namespace WebPresentation.Controllers
public abstract class BaseController : Controller
{
private readonly UserManager<User> _userManager;
private readonly IUnitOfWork<Patient> _patientUnitOfWork;
public BaseController(UserManager<User> userManager) {
_userManager = userManager;
......@@ -30,6 +33,7 @@ namespace WebPresentation.Controllers
return GetCurrentUser().UserName;
}
public String GetUserId() {
return GetCurrentUser().Id;
}
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Services.MedicineService;
using ApplicationCore.Services.PatientService;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
......@@ -12,6 +9,7 @@ using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using WebPresentation.Models;
using ApplicationCore.Interfaces.IServices;
namespace WebPresentation.Controllers
{
......@@ -19,21 +17,20 @@ namespace WebPresentation.Controllers
[Authorize(Roles ="patient")]
public class HomeController : BaseController
{
private readonly PatientService _patientService;
private readonly MedicineService _medicineService;
private readonly IPatientService _patientService;
private readonly IMedicineService _medicineService;
private readonly UserManager<User> _userManager;
public HomeController(
UserManager<User> userManager,
IUnitOfWork<Patient> patientUnitOfWork,
IUnitOfWork<Medicine> medicineUnitOfWork,
IUnitOfWork<MedicalState> medicalStateUnitOfWork
IPatientService patientService,
IMedicineService medicineService
):base(userManager)
{
_userManager = userManager;
_medicineService = new MedicineService(medicineUnitOfWork);
_patientService = new PatientService(patientUnitOfWork,medicalStateUnitOfWork);
_medicineService = medicineService;
_patientService = patientService;
}
......@@ -53,31 +50,8 @@ namespace WebPresentation.Controllers
return View(ownesr);
}
public IActionResult MedicalStateDetails(int id ) {
var s = _patientService.GetMedicalStateDetails(
id);
if (s is null) {
return NotFound();
}
else
return View(s);
}
public IActionResult Privacy()
{
return View();
}
public IActionResult AddMedicalState(int id) {
var userId = _userManager.GetUserId(User);
var patient = _patientService.GetAll()
.Where(u => u.User.Id ==userId ).FirstOrDefault();
var m =_patientService.GetMedicalStateDetails(id);
_patientService.AddMedicalState(patient.Id, m);
return RedirectToAction("Index","Home");
}
public IActionResult MedicinesGalary() {
return View(_medicineService.GetAllMedicines());
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Services.IngredientService;
using ApplicationCore.Services.MedicineService;
using ApplicationCore.Services.PatientService;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
......@@ -15,16 +15,18 @@ namespace WebPresentation.Controllers
{
public class IngredientController : BaseController
{
private readonly IngredientService _ingredientService;
private readonly MedicineService _medicineService;
private readonly IIngredientService _ingredientService;
private readonly IMedicineService _medicineService;
public IngredientController(UserManager<User> userManager,
IUnitOfWork<Medicine> medicineUnitOfWork,
IUnitOfWork<Ingredient> ingredientUnitOfWork) : base(userManager)
IMedicineService medicineService ,
IIngredientService ingredientSercie
) : base(userManager)
{
_ingredientService = new IngredientService(ingredientUnitOfWork);
_medicineService = new MedicineService(medicineUnitOfWork);
_ingredientService =ingredientSercie;
_medicineService = medicineService;
}
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebPresentation.Controllers
{
[Authorize]
public class MedicalStateController : BaseController
{
private readonly IMedicalStateService _medicalStateService;
private readonly IMedicineService _medicineService;
private readonly IPatientService _patientService;
public MedicalStateController(UserManager<User> userManager,
IMedicalStateService medicalStateService ,
IPatientService patientService ,
IMedicineService medicineService
) : base(userManager)
{
_medicalStateService = medicalStateService;
_medicineService = medicineService;
_patientService =patientService;
}
public IActionResult Index(int? id )
{
var u = GetUserId();
var pId = _patientService.GetAll().Where(p => p.User.Id == u).FirstOrDefault().Id;
var meds = _medicalStateService.GetAll(pId);
return View(meds);
}
public IActionResult Details(int? id)
{
if (id == null)
{
return NotFound();
}
var medicine = _medicalStateService.GetDetails((int)id);
if (medicine == null)
{
return NotFound();
}
return View(medicine);
}
// GET: Projects/Create
public IActionResult Create()
{
return View();
}
// POST: Projects/Create
// To protect from overposting attacks, enable the specific properties you want to bind to.
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult Create(MedicalState medicalState, int id)
{
if (ModelState.IsValid)
{
var uId = GetUserId();
var p = _patientService.GetAll(
)
.Where(
u => u.User.Id == uId
)
.FirstOrDefault().Id;
if (medicalState.PrescriptionTime == DateTime.MinValue )
medicalState.PrescriptionTime = DateTime.Now;
_medicalStateService.Add(p,medicalState);
return RedirectToAction(nameof(Index));
}
return View(medicalState);
}
// GET: Projects/Edit/5
public IActionResult Edit(int? id)
{
if (id == null)
{
return NotFound();
}
var medicine = _medicalStateService.GetDetails((int)id);
if (medicine == null)
{
return NotFound();
}
return View(medicine);
}
// POST: Projects/Edit/5
// To protect from overposting attacks, enable the specific properties you want to bind to.
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult Edit(int id, MedicalState medicalState)
{
if (id != medicalState.Id)
{
return NotFound();
}
if (ModelState.IsValid)
{
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);
}
catch (DbUpdateConcurrencyException)
{/*
if (!_medicineService.projectExists(project.Id))
{
return NotFound();
}
else
{
throw;
}
*/
}
return RedirectToAction(nameof(Index));
}
return View(medicalState);
}
// GET: Projects/Delete/5
public IActionResult Delete(int id)
{
var project = _medicalStateService.GetDetails(id);
if (project == null)
{
return NotFound();
}
return View(project);
}
public IActionResult AddMedicine(int id)
{
var s = _medicineService.GetAllMedicines();
ViewBag.MedicalStateId = id;
return View(s);
}
[HttpPost]
public IActionResult AddMedicine(int id, int med)
{
_medicalStateService.AddMedicine(id ,med);
return RedirectToAction("Details", "MedicalState", new { Id = id });
}
// POST: Projects/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
public IActionResult DeleteConfirmed(int id)
{
_medicineService.Delete(id);
return RedirectToAction(nameof(Index));
}
}
}
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Services.IngredientService;
using ApplicationCore.Services.MedicineService;
using ApplicationCore.Services.PatientService;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using ApplicationCore.ViewModel;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
......@@ -19,19 +19,20 @@ namespace WebPresentation.Controllers
[Authorize(Roles ="Admin")]
public class MedicineController : BaseController
{
private readonly IngredientService _ingredientService;
private readonly MedicineService _medicineService;
private readonly PatientService _patientService;
private readonly IIngredientService _ingredientService;
private readonly IMedicineService _medicineService;
private readonly IPatientService _patientService;
public MedicineController(UserManager<User> userManager,
IUnitOfWork<Patient> patientUnitOfWork,
IUnitOfWork<Medicine> medicineUnitOfWork,
IUnitOfWork<MedicalState> medicalStateUnitOfWork,
IUnitOfWork<Ingredient>ingredientUnitOfWork):base(userManager)
{
_ingredientService =new IngredientService( ingredientUnitOfWork);
_medicineService = new MedicineService( medicineUnitOfWork);
_patientService = new PatientService(patientUnitOfWork,medicalStateUnitOfWork);
IMedicineService medicineService ,
IIngredientService ingredientService ,
IPatientService patientService
):base(userManager)
{
_ingredientService =ingredientService;
_medicineService = medicineService;
_patientService =patientService;
}
......
using ApplicationCore.Entities;
using ApplicationCore.Interfaces;
using ApplicationCore.Interfaces.IServices;
using ApplicationCore.Services;
using Infrastructure.Data;
using Infrastructure.Repository;
using Infrastructure.UnitOfWork;
......@@ -35,10 +37,19 @@ namespace WebPresentation
services.AddScoped(typeof(IUnitOfWork<>),typeof(UnitOfWork<>));
services.AddScoped(typeof(IGenericRepository<>), typeof(GenericRepository<>));
services.AddScoped<IPatientService, PatientService>();
services.AddScoped<IMedicalStateService, MedicalStateService>();
services.AddScoped<IMedicineService, MedicineService>();
services.AddScoped<IIngredientService, IngredientService>();
services.AddDbContext<MedicDbContext>(options => {
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))
;
}
); ;
services.AddDbContext<MedicDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddSession();
......
......@@ -13,9 +13,9 @@
ViewData["title"] = "Home - " + userName;
ViewData["userName"] = Model.User.FirstName + " " + Model.User.LastName;
ViewBag.Avatar = Model.User.Avatar;
ViewBag.owner = Model;
var i = 1;
}
......@@ -44,25 +44,47 @@
</div>
</header>
<!-- Portfolio Section -->
<section class="page-section portfolio" id="portfolio">
<div class="container-fluid">
<section id="services" class=" services ">
<div class="container">
<!-- Portfolio Section Heading -->
<h2 class=" page-section-heading text-center text-uppercase text-secondary mb-0">Patient Medicine</h2>
<!-- Icon Divider -->
<div class="section-title">
<h2>Your medical State </h2>
<p>Here you can create new medical state <a asp-controller="MedicalState" asp-action="Create" >Create</a>.</p>
</div>
<div class=" divider-custom">
<div class="divider-custom-line"></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="divider-custom-icon">
<i class="fas fa-star"></i>
<div class="col-lg-4 col-md-6 d-flex align-items-stretch">
<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>
</div>
<div class="divider-custom-line"></div>
</div>
}
</div>
</div>
</section><!-- End Services Section -->
<!--<section class="page-section ">
<div class="container-fluid">-->
<!-- Portfolio Grid Items -->
<div class="row d-flex flex-wrap justify-content-sm-center">
<!--<div class="row d-flex flex-wrap justify-content-sm-center">
@if (Model.MedicalStates.Count() == 0)
{
<h2 class="text-center">You dont have any MedicalState</h2>
......@@ -72,7 +94,15 @@
@foreach (var item in Model.MedicalStates)
{
<div class="col-lg-4 col-md-6 d-flex align-items-stretch">
<div class="icon-box">
<div class="icon"><i class="fas fa-heartbeat"></i></div>
<h4><a href="">@item.StateName</a></h4>
<p>@item.StateDescription</p>
<a href="#" class="btn btn-primary" data-toggle="modal" data-target="#item-@(item.Id)">go to descriptiuon </a>
</div>
</div>
<div class="col-lg-4">
<div class="card m-3">
<img src="/img/portfolio/flappy.png"
......@@ -91,17 +121,18 @@
<a href="#" class="btn btn-primary" data-toggle="modal" data-target="#item-@(item.Id)">go to descriptiuon </a>
</div>
</div>
</div>}
</div>
}
</div>-->
<!-- /.row -->
</div>
</section>
<!--</div>
</section>-->
<section class="page-section bg-primary text-white mb-0" id="topThree">
<div class="container-fluid">
<!-- Portfolio Section Heading -->
<h2 class=" page-section-heading text-center text-uppercase text-secondary mb-0">For more Medicine</h2><br/>
<h2 class="page-section-heading text-center mb-0r" style="color :white!important ;"><a asp-action="MedicinesGalary" asp-controller="Home" >Go to Add Medicine to your profile</a> </h2>
<h2 class=" page-section-heading text-center text-uppercase text-secondary mb-0">For more Medicine</h2><br />
<h2 class=" page-section-heading text-center text-secondary mb-0" style="color :white!important ;"><a asp-action="Index" asp-controller="MedicalState">Go to You Medical States profile</a> </h2>
<!-- Icon Divider -->
</div>
......@@ -203,7 +234,7 @@
<p class="mb-5">State Name : @item.StateName</p>
<p class="mb-5">State Time : @item.PrescriptionTime</p>
<a asp-action="MedicalStateDetails" role="button" class="btn btn-primary" asp-controller="Home" asp-route-id="@item.Id">View More </a>
<a asp-action="Details" role="button" class="btn btn-primary" asp-controller="MedicalState" asp-route-id="@item.Id">View More </a>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
......
......@@ -5,6 +5,7 @@
var a = 0;
}
<section class="page-section" style="background-color: #f4f5f7;">
......@@ -17,9 +18,9 @@
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>@Model.</h5>
<p>For: @(Model.Category is null ? "":Model.Category.Name)</p>
<a asp-action="Edit" asp-route-id="@Model.Id">
<h5>@Model.StateName</h5>
<p>AT: @(Model.PrescriptionTime )</p>
<a asp-action="Edit" asp-controller="MedicalState" asp-route-id="@Model.Id">
<i class="far fa-edit mb-5"></i>
</a>
......@@ -31,22 +32,20 @@
Go Back
</a>
</div>
<div class="col-md-8">
<div class="col-md-10">
<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.Description</p>
<p class="text-muted">@Model.StateDescription</p>
</div>
<div class="col-6 mb-3">
<h6>Medicine Type:@Model.MedicineType.TypeName</h6>
<p class="text-muted">Dosage : @Model.Dosage</p>
<p class="text-muted">Price : @Model.Price</p>
<h6>Medicines Count:@Model.Medicines.Count()</h6>
</div>
</div>
<h6>Ingredients : </h6>
<h6>Medicines : </h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<table class="table table-bordered">
......@@ -55,18 +54,24 @@
<td>#</td>
<td>Name</td>
<td>Description</td>
<td>Ratio</td>
<td>Price</td>
<td>dosage</td>
<td>Manfacture Name</td>
</tr>
</thead>
<tbody>
@foreach (var ing in Model.MedicineIngredients)
@foreach (var ing in Model.Medicines)
{
<tr class=" mb-3">
<td>@(a+=1)</td>
<td>@ing.Ingredient.Name</td>
<td>@ing.Ingredient.Description</td>
<td>@ing.Ratio</td>
<td>@ing.TradeName</td>
<td>@ing.Description</td>
<td>@ing.Price</td>
<td>@ing.Dosage</td>
<td>@ing.ManufactureName</td>
</tr>
}
......@@ -88,3 +93,48 @@
</div>
</div>
</section>
<section class="page-section mt-5">
<!-- Carousel wrapper -->
<div id="carouselMultiItemExample"
data-mdb-carousel-init class="carousel slide carousel-dark text-center"
data-mdb-ride="carousel">
<!-- Inner -->
<div class="carousel-inner py-4">
<!-- Single item -->
<div class="carousel-item active">
<div class="container">
<div class="row">
@foreach (var item in Model.Medicines)
{
<div class="col-lg-4">
<div class="card m-3">
<img src="/img/portfolio/@item.Image"
class="card-img-top img-fluid" style="max-height:250px "
alt="Waterfall" />
<div class="card-body">
<h5 class="card-title">@item.TradeName</h5>
<p class="card-text">
@item.Description
<br />
Price : @item.Price <br />
Type : @item.MedicineType
</p>
<a asp-action="AddMedicine" asp-controller="Home" asp-route-id="@item.Id" data-mdb-ripple-init class="btn btn-primary">Add to my Profile</a>
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
<!-- Inner -->
</div>
<!-- Carousel wrapper -->
</section>
\ No newline at end of file
......@@ -19,7 +19,7 @@
class="card-img-top img-fluid"style="max-height:250px "
alt="Waterfall" />
<div class="card-body">
<h5 class="card-title">@item.Name</h5>
<h5 class="card-title">@item.TradeName</h5>
<p class="card-text">
@item.Description
<br />
......
@model IEnumerable<Medicine>
@(ViewData["Title"]="Medicines Galary")
<section class="page-section mt-5">
<!-- Carousel wrapper -->
<div id="carouselMultiItemExample"
data-mdb-carousel-init class="carousel slide carousel-dark text-center"
data-mdb-ride="carousel">
<!-- Inner -->
<div class="carousel-inner py-4">
<!-- Single item -->
<div class="carousel-item active">
<div class="container">
<div class="row">
@foreach (var item in Model)
{
<div class="col-lg-4">
<div class="card m-3">
<img src="/img/portfolio/@item.Image"
class="card-img-top img-fluid" style="max-height:250px "
alt="Waterfall" />
<div class="card-body">
<h5 class="card-title">@item.TradeName</h5>
<p class="card-text">
@item.Description
<br />
Price : @item.Price <br />
Type : @item.MedicineType
</p>
<form class="form-inline" method="post" asp-action="AddMedicine" asp-controller="MedicalState" asp-route-med="@item.Id" asp-route-id="@ViewBag.MedicalStateId">
<button role="submit" class="btn btn-primary">Add to my Profile</button>
</form>
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
<!-- Inner -->
</div>
<!-- Carousel wrapper -->
</section>
\ No newline at end of file
@model ApplicationCore.Entities.MedicalState
@{
ViewData["Title"] = "Create";
}
<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");}
}
@model MedicalState
@{
ViewData["Title"] = "Medical State Details ";
var a = 0;
}
<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="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>@Model.StateName</h5>
<p>AT: @(Model.PrescriptionTime )</p>
<a asp-action="Edit" asp-controller="MedicalState" asp-route-id="@Model.Id">
<i class="far fa-edit mb-5"></i>
</a>
<a asp-action="Index">
<i class="far fa-backward">
</i>
Go Back
</a>
</div>
<div class="col-md-10">
<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>
</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>
</div>
</div>
<h6>Medicines : </h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<table class="table table-bordered">
<thead>
<tr>
<td>#</td>
<td>Name</td>
<td>Description</td>
<td>Price</td>
<td>dosage</td>
<td>Manfacture Name</td>
</tr>
</thead>
<tbody>
@foreach (var ing in Model.Medicines)
{
<tr class=" mb-3">
<td>@(a+=1)</td>
<td>@ing.TradeName</td>
<td>@ing.Description</td>
<td>@ing.Price</td>
<td>@ing.Dosage</td>
<td>@ing.ManufactureName</td>
</tr>
}
</tbody>
</table>
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Go To list </h6>
<a asp-action="Index">Back to List</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="page-section mt-5">
<!-- Carousel wrapper -->
<div id="carouselMultiItemExample"
data-mdb-carousel-init class="carousel slide carousel-dark text-center"
data-mdb-ride="carousel">
<!-- Inner -->
<div class="carousel-inner py-4">
<!-- Single item -->
<div class="carousel-item active">
<div class="container">
<div class="row">
@foreach (var item in Model.Medicines)
{
<div class="col-lg-4">
<div class="card m-3">
<img src="/img/portfolio/@item.Image"
class="card-img-top img-fluid" style="max-height:250px "
alt="Waterfall" />
<div class="card-body">
<h5 class="card-title">@item.TradeName</h5>
<p class="card-text">
@item.Description
<br />
Price : @item.Price <br />
Type : @item.MedicineType
</p>
<a asp-action="RemoveMedicine" asp-controller="MedicalState" asp-route-id="@item.Id" data-mdb-ripple-init class="btn btn-primary">Remove From my Profile</a>
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
<!-- Inner -->
</div>
<!-- Carousel wrapper -->
</section>
\ No newline at end of file
@model ApplicationCore.Entities.MedicalState
@{
ViewData["Title"] = "Edit";
}
<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" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
@model IEnumerable<MedicalState>;
@{
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>
<a asp-action="Index">
<i class="far fa-backward">
</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>
</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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
}
\ No newline at end of file
......@@ -28,19 +28,36 @@
</div>
</div>
<div class="form-group">
<div class="col-5">
<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="col-5">
<label asp-for="SideEffect" class="control-label"></label>
<input asp-for="SideEffect" class="form-control" />
<span asp-validation-for="SideEffect" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Dosage" class="control-label"></label>
<input asp-for="Dosage" class="form-control" />
<span asp-validation-for="Dosage" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Category.Name" class="control-label"></label>
<div class="col-5">
<label for="Category" class="control-label"></label>
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="ManufactureName" class="control-label"></label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Image" class="control-label"></label>
......
......@@ -15,10 +15,10 @@
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Name)
@Html.DisplayNameFor(model => model.TradeName)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Name)
@Html.DisplayFor(model => model.TradeName)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Description)
......
......@@ -16,7 +16,7 @@
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<img src="~/img/portfolio/@Model.Image"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
<h5>@Model.Name</h5>
<h5>@Model.TradeName</h5>
<p>For: @(Model.Category is null ? "":Model.Category.Name)</p>
<a asp-action="Edit" asp-route-id="@Model.Id">
<i class="far fa-edit mb-5"></i>
......@@ -40,7 +40,7 @@
<p class="text-muted">@Model.Description</p>
</div>
<div class="col-6 mb-3">
<h6>Medicine Type:@Model.MedicineType</h6>
<h6>Medicine Type:@Model.MedicineType?.TypeName</h6>
<p class="text-muted">Dosage : @Model.Dosage</p>
<p class="text-muted">Price : @Model.Price</p>
</div>
......
......@@ -16,9 +16,9 @@
<form asp-action="Edit" class="form-group ">
<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>
<label asp-for="TradeName" class="control-label "></label>
<input asp-for="TradeName" class="form-control" />
<span asp-validation-for="TradeName" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
......@@ -44,6 +44,19 @@
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
</div>
<div class="col">
<label asp-for="ManufactureName" class="control-label"></label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col ">
<label asp-for="ScintificName" class="control-label"></label>
<input asp-for="ScintificName" class="form-control" />
<span asp-validation-for="ScintificName" class="text-danger"></span>
</div>
<div class="col">
<label asp-for="MedicineType.TypeName" class="control-label"></label>
......@@ -51,6 +64,14 @@
<span asp-validation-for="MedicineType.TypeName" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col ">
<label asp-for="SideEffect" class="control-label"></label>
<input asp-for="SideEffect" class="form-control" />
<span asp-validation-for="SideEffect" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Image" class="control-label"></label>
<input asp-for="Image" class="form-control" />
......
......@@ -127,7 +127,7 @@
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.Medicines.First().Name)
@Html.DisplayNameFor(model => model.Medicines.First().TradeName)
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.Medicines.First().Description)
......@@ -176,7 +176,7 @@
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
@Html.DisplayFor(modelItem => item.TradeName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
......@@ -196,7 +196,7 @@
<a asp-action="Delete" asp-controller="Medicine" asp-route-id="@item.Id"><i class="far fa-trash-can text-bg-danger"></i></a>
</td>
<td>
@Html.DisplayFor(modelItem => item.Patients.Count)
@Html.DisplayFor(modelItem => item.MedicalStates.Count)
</td>
</tr>
}
......
......@@ -12,6 +12,11 @@
<meta name="description" content="">
<meta name="author" content="">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="/css/stylemedlab.css" rel="stylesheet">
<title> @ViewData["title"]</title>
<!-- Custom fonts for this theme -->
......@@ -29,7 +34,10 @@
<!-- Navigation -->
<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">@ViewData["userName"]</a>
<a class="navbar-brand js-scroll-trigger" href="#page-top">
@ViewData["userName"]
</a>
<button class="navbar-toggler navbar-toggler-right text-uppercase font-weight-bold bg-primary text-white rounded" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7b2cd0863eba086b2c6a80c66ead7739e62231b6"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Index), @"mvc.1.0.view", @"/Views/Home/Index.cshtml")]
......@@ -46,20 +46,21 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"7b2cd0863eba086b2c6a80c66ead7739e62231b6", @"/Views/Home/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d", @"/Views/Home/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Patient>
{
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/noData.jpg"), 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("figure-img"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "MedicinesGalary", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Home", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("name", new global::Microsoft.AspNetCore.Html.HtmlString("sentMessage"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("contactForm"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("novalidate", new global::Microsoft.AspNetCore.Html.HtmlString("novalidate"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "MedicineDetails", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("role", new global::Microsoft.AspNetCore.Html.HtmlString("button"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-primary"), 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-controller", "MedicalState", 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", "Create", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/img/portfolio/noData.jpg"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("figure-img"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = 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_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("name", new global::Microsoft.AspNetCore.Html.HtmlString("sentMessage"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("contactForm"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("novalidate", new global::Microsoft.AspNetCore.Html.HtmlString("novalidate"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Details", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("role", new global::Microsoft.AspNetCore.Html.HtmlString("button"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_10 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-primary"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -80,8 +81,8 @@ using Microsoft.AspNetCore.Identity;
return __backed__tagHelperScopeManager;
}
}
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper;
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper;
#pragma warning disable 1998
......@@ -97,32 +98,31 @@ using Microsoft.AspNetCore.Identity;
ViewData["title"] = "Home - " + userName;
ViewData["userName"] = Model.User.FirstName + " " + Model.User.LastName;
ViewBag.Avatar = Model.User.Avatar;
ViewBag.owner = Model;
var top = Model.Medicines.Where(t => t.Dosage > 0).ToList();
var i = 1;
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n<!-- Masthead -->\r\n<header class=\"masthead bg-primary text-white text-center\">\r\n <div class=\"container d-flex align-items-center flex-column\">\r\n\r\n <!-- Masthead Avatar Image -->\r\n <img class=\"masthead-avatar mb-5\"");
BeginWriteAttribute("src", " src=\"", 804, "\"", 833, 2);
WriteAttributeValue("", 810, "/img/", 810, 5, true);
BeginWriteAttribute("src", " src=\"", 759, "\"", 788, 2);
WriteAttributeValue("", 765, "/img/", 765, 5, true);
#nullable restore
#line 28 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 815, Model.User.Avatar, 815, 18, false);
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 770, Model.User.Avatar, 770, 18, false);
#line default
#line hidden
#nullable disable
EndWriteAttribute();
WriteLiteral(" style=\"border-radius:50%\"");
BeginWriteAttribute("alt", " alt=\"", 860, "\"", 866, 0);
BeginWriteAttribute("alt", " alt=\"", 815, "\"", 821, 0);
EndWriteAttribute();
WriteLiteral(">\r\n\r\n <!-- Masthead Heading -->\r\n <h1 class=\"masthead-heading text-uppercase mb-0\">");
#nullable restore
#line 31 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(Model.User.FirstName +" "+ Model.User.LastName);
#line default
......@@ -142,53 +142,142 @@ WriteAttributeValue("", 815, Model.User.Avatar, 815, 18, false);
<!-- Masthead Subheading -->
<p class=""masthead-subheading font-weight-light mb-0"">");
#nullable restore
#line 43 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 42 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(Model.BIO);
#line default
#line hidden
#nullable disable
WriteLiteral(@"</p>
WriteLiteral("</p>\r\n\r\n </div>\r\n</header>\r\n\r\n<section id=\"services\" class=\" services \">\r\n <div class=\"container\">\r\n\r\n <div class=\"section-title\">\r\n <h2>Your medical State </h2>\r\n <p>Here you can create new medical state ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d10386", async() => {
WriteLiteral("Create");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(".</p>\r\n </div>\r\n\r\n <div class=\"row\">\r\n");
#nullable restore
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
if (Model.MedicalStates.Count() == 0)
{
</div>
</header>
#line default
#line hidden
#nullable disable
WriteLiteral(" <h2 class=\"text-center\">You dont have any MedicalState</h2>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d12152", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
else
<!-- Portfolio Section -->
<section class=""page-section portfolio"" id=""portfolio"">
<div class=""container-fluid"">
<!-- Portfolio Section Heading -->
<h2 class="" page-section-heading text-center text-uppercase text-secondary mb-0"">Patient Medicine</h2>
<!-- Icon Divider -->
#line default
#line hidden
#nullable disable
#nullable restore
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
{
<div class="" divider-custom"">
<div class=""divider-custom-line""></div>
<div class=""divider-custom-icon"">
<i class=""fas fa-star""></i>
#line default
#line hidden
#nullable disable
WriteLiteral(" <div class=\"col-lg-4 col-md-6 d-flex align-items-stretch\">\r\n <div class=\"icon-box\">\r\n <div class=\"icon\"><i class=\"fas fa-heartbeat\"></i></div>\r\n <h4>");
#nullable restore
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
#line hidden
#nullable disable
WriteLiteral("</h4>\r\n <p>");
#nullable restore
#line 70 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
#line hidden
#nullable disable
WriteLiteral(" - Prescriped at ");
#nullable restore
#line 70 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.PrescriptionTime);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n <a data-toggle=\"modal\" data-target=\"#item-");
#nullable restore
#line 71 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
#line hidden
#nullable disable
WriteLiteral("\" class=\"btn btn-primary\" >\r\n Details</a>\r\n </div>\r\n\r\n </div>\r\n");
#nullable restore
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
#line default
#line hidden
#nullable disable
WriteLiteral(@"
</div>
<div class=""divider-custom-line""></div>
</div>
</section><!-- End Services Section -->
<!--<section class=""page-section "">
<div class=""container-fluid"">-->
<!-- Portfolio Grid Items -->
<div class=""row d-flex flex-wrap justify-content-sm-center"">
<!--<div class=""row d-flex flex-wrap justify-content-sm-center"">
");
#nullable restore
#line 67 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
if (Model.Medicines.Count() == 0)
#line 88 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
if (Model.MedicalStates.Count() == 0)
{
#line default
#line hidden
#nullable disable
WriteLiteral(" <h2 class=\"text-center\">You dont have any Medicine</h2>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "7b2cd0863eba086b2c6a80c66ead7739e62231b610959", async() => {
WriteLiteral(" <h2 class=\"text-center\">You dont have any MedicalState</h2>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d16106", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -198,7 +287,7 @@ WriteAttributeValue("", 815, Model.User.Avatar, 815, 18, false);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
#nullable restore
#line 71 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 92 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
else
......@@ -207,94 +296,119 @@ WriteAttributeValue("", 815, Model.User.Avatar, 815, 18, false);
#line hidden
#nullable disable
#nullable restore
#line 73 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.Medicines)
#line 94 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
{
#line default
#line hidden
#nullable disable
WriteLiteral(" <div class=\"col-lg-4 col-md-6 d-flex align-items-stretch\">\r\n <div class=\"icon-box\">\r\n <div class=\"icon\"><i class=\"fas fa-heartbeat\"></i></div>\r\n <h4><a");
BeginWriteAttribute("href", " href=\"", 3550, "\"", 3557, 0);
EndWriteAttribute();
WriteLiteral(">");
#nullable restore
#line 100 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
#line hidden
#nullable disable
WriteLiteral("</a></h4>\r\n <p>");
#nullable restore
#line 101 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
#line hidden
#nullable disable
WriteLiteral(" <div class=\"col-lg-4\">\r\n <div class=\"card m-3\">\r\n <img");
BeginWriteAttribute("src", " src=\"", 2631, "\"", 2663, 2);
WriteAttributeValue("", 2637, "/img/portfolio/", 2637, 15, true);
WriteLiteral("</p>\r\n <a href=\"#\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#item-");
#nullable restore
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 2652, item.Image, 2652, 11, false);
#line 102 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
#line hidden
#nullable disable
EndWriteAttribute();
WriteLiteral("\r\n class=\"card-img-top img-fluid\" style=\"max-height:250px \"\r\n alt=\"Waterfall\" />\r\n <div class=\"card-body\">\r\n <h5 class=\"card-title\">");
WriteLiteral(@""">go to descriptiuon </a>
</div>
</div>
<div class=""col-lg-4"">
<div class=""card m-3"">
<img src=""/img/portfolio/flappy.png""
class=""card-img-top img-fluid"" style=""max-height:250px ""
alt=""Waterfall"" />
<div class=""card-body"">
<h5 class=""card-title"">");
#nullable restore
#line 83 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Name);
#line 112 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
#line hidden
#nullable disable
WriteLiteral("</h5>\r\n <p class=\"card-text\">\r\n ");
#nullable restore
#line 85 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Description);
#line 114 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n <br />\r\n Price : ");
WriteLiteral("\r\n <br />\r\n Date : ");
#nullable restore
#line 87 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Price);
#line 116 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.PrescriptionTime);
#line default
#line hidden
#nullable disable
WriteLiteral(" <br />\r\n\r\n Type : ");
WriteLiteral(" <br />\r\n\r\n Medicines : ");
#nullable restore
#line 89 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.MedicineType);
#line 118 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Medicines.Count());
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n\r\n </p>\r\n <a href=\"#\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#item-");
#nullable restore
#line 92 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 121 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
#line hidden
#nullable disable
WriteLiteral("\">go to descriptiuon </a>\r\n </div>\r\n </div>\r\n </div>");
WriteLiteral("\">go to descriptiuon </a>\r\n </div>\r\n </div>\r\n </div>\r\n");
#nullable restore
#line 95 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 125 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
#line default
#line hidden
#nullable disable
WriteLiteral(@" </div>
WriteLiteral(@" </div>-->
<!-- /.row -->
</div>
</section>
<!--</div>
</section>-->
<section class=""page-section bg-primary text-white mb-0"" id=""topThree"">
<div class=""container-fluid"">
<!-- Portfolio Section Heading -->
<h2 class="" page-section-heading text-center text-uppercase text-secondary mb-0"">For more Medicine</h2><br/>
<h2 class=""page-section-heading text-center mb-0r"" style=""color :white!important ;"">");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b2cd0863eba086b2c6a80c66ead7739e62231b615840", async() => {
WriteLiteral("Go to Add Medicine to your profile");
<h2 class="" page-section-heading text-center text-uppercase text-secondary mb-0"">For more Medicine</h2><br />
<h2 class="" page-section-heading text-center text-secondary mb-0"" style=""color :white!important ;"">");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d22166", async() => {
WriteLiteral("Go to You Medical States profile");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -330,7 +444,7 @@ WriteAttributeValue("", 2652, item.Image, 2652, 11, false);
<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. -->
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b2cd0863eba086b2c6a80c66ead7739e62231b618159", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d24478", async() => {
WriteLiteral(@"
<div class=""control-group"">
<div class=""form-group floating-label-form-group controls mb-0 pb-2"">
......@@ -374,9 +488,9 @@ WriteAttributeValue("", 2652, item.Image, 2652, 11, false);
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -386,30 +500,30 @@ WriteAttributeValue("", 2652, item.Image, 2652, 11, false);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n </div>\r\n</section>\r\n\r\n<!-- Modals -->\r\n");
#nullable restore
#line 174 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.Medicines)
#line 204 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
{
#line default
#line hidden
#nullable disable
WriteLiteral(" <!-- Portfolio Modal -->\r\n <div class=\"portfolio-modal modal fade\"");
BeginWriteAttribute("id", " id=\"", 7553, "\"", 7573, 2);
WriteAttributeValue("", 7558, "item-", 7558, 5, true);
BeginWriteAttribute("id", " id=\"", 9025, "\"", 9045, 2);
WriteAttributeValue("", 9030, "item-", 9030, 5, true);
#nullable restore
#line 177 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 7563, item.Id, 7563, 10, false);
#line 207 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 9035, item.Id, 9035, 10, false);
#line default
#line hidden
#nullable disable
EndWriteAttribute();
WriteLiteral(" tabindex=\"-1\" role=\"dialog\"");
BeginWriteAttribute("aria-labelledby", " aria-labelledby=\"", 7602, "\"", 7634, 2);
WriteAttributeValue("", 7620, "label-", 7620, 6, true);
BeginWriteAttribute("aria-labelledby", " aria-labelledby=\"", 9074, "\"", 9106, 2);
WriteAttributeValue("", 9092, "label-", 9092, 6, true);
#nullable restore
#line 177 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 7626, item.Id, 7626, 8, false);
#line 207 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 9098, item.Id, 9098, 8, false);
#line default
#line hidden
......@@ -431,8 +545,8 @@ WriteAttributeValue("", 7626, item.Id, 7626, 8, false);
<!-- Portfolio Modal - Title -->
<h2 class=""portfolio-modal-title text-secondary text-uppercase mb-0"">");
#nullable restore
#line 191 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Name);
#line 221 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
#line hidden
......@@ -447,63 +561,53 @@ WriteAttributeValue("", 7626, item.Id, 7626, 8, false);
<div class=""divider-custom-line""></div>
</div>
<!-- Portfolio Modal - Image -->
<img class=""img-fluid rounded mb-5""");
BeginWriteAttribute("src", " src=", 9042, "", 9079, 1);
#nullable restore
#line 201 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 9047, "/img/portfolio/"+item.Image , 9047, 32, false);
#line default
#line hidden
#nullable disable
<img class=""img-fluid rounded mb-5"" src=""/img/portfolio/ecole.png""");
BeginWriteAttribute("alt", " alt=\"", 10550, "\"", 10556, 0);
EndWriteAttribute();
WriteLiteral(" )");
BeginWriteAttribute("alt", " alt=\"", 9081, "\"", 9087, 0);
EndWriteAttribute();
WriteLiteral(">\r\n <!-- Portfolio Modal - Text -->\r\n <p class=\"mb-5\">medicine Description : ");
WriteLiteral(">\r\n <!-- Portfolio Modal - Text -->\r\n <p class=\"mb-5\">State Description : ");
#nullable restore
#line 203 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Description);
#line 233 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n <p class=\"mb-5\">medicine price : ");
WriteLiteral("</p>\r\n <p class=\"mb-5\">State Name : ");
#nullable restore
#line 204 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Price);
#line 234 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n <p class=\"mb-5\">medicine Dosage : ");
WriteLiteral("</p>\r\n <p class=\"mb-5\">State Time : ");
#nullable restore
#line 205 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Dosage);
#line 235 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.PrescriptionTime);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b2cd0863eba086b2c6a80c66ead7739e62231b626804", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f05ebe4ffce4b1d702b897aa6d6bea59c99deb2d32795", async() => {
WriteLiteral("View More ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
}
BeginWriteTagHelperAttribute();
#nullable restore
#line 207 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 237 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteLiteral(item.Id);
#line default
......@@ -534,7 +638,7 @@ WriteAttributeValue("", 9047, "/img/portfolio/"+item.Image , 9047, 32, false);
</div>
");
#nullable restore
#line 220 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 250 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4de457be887fbbb37b649872c3c6cd7e099e0ac5"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_MedicineDetails), @"mvc.1.0.view", @"/Views/Home/MedicineDetails.cshtml")]
namespace AspNetCore
{
#line hidden
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using WebPresentation;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using WebPresentation.Models;
#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using ApplicationCore.Entities;
#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\_ViewImports.cshtml"
using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4de457be887fbbb37b649872c3c6cd7e099e0ac5", @"/Views/Home/MedicineDetails.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Home_MedicineDetails : 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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("img-fluid my-5"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("style", new global::Microsoft.AspNetCore.Html.HtmlString("width: 80px;"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = 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_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
#pragma warning restore 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
#pragma warning disable 0169
private string __tagHelperStringValueBuffer;
#pragma warning restore 0169
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
{
get
{
if (__backed__tagHelperScopeManager == null)
{
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
}
return __backed__tagHelperScopeManager;
}
}
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
#nullable restore
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
ViewData["Title"] = "Medicine Details ";
var a = 0;
#line default
#line hidden
#nullable disable
WriteLiteral(@"
<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=""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, "4de457be887fbbb37b649872c3c6cd7e099e0ac56096", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 684, "~/img/portfolio/", 684, 16, true);
#nullable restore
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
AddHtmlAttributeValue("", 700, Model.Image, 700, 12, false);
#line default
#line hidden
#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <h5>");
#nullable restore
#line 20 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.Name);
#line default
#line hidden
#nullable disable
WriteLiteral("</h5>\r\n <p>For: ");
#nullable restore
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.Category is null ? "":Model.Category.Name);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4de457be887fbbb37b649872c3c6cd7e099e0ac58459", async() => {
WriteLiteral("\r\n <i class=\"far fa-edit mb-5\"></i>\r\n ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
}
BeginWriteTagHelperAttribute();
#nullable restore
#line 22 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
WriteLiteral(Model.Id);
#line default
#line hidden
#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4de457be887fbbb37b649872c3c6cd7e099e0ac510748", async() => {
WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n Go Back\r\n ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
</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"">");
#nullable restore
#line 41 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.Description);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n <h6>Medicine Type:");
#nullable restore
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.MedicineType.TypeName);
#line default
#line hidden
#nullable disable
WriteLiteral("</h6>\r\n <p class=\"text-muted\">Dosage : ");
#nullable restore
#line 45 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.Dosage);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n <p class=\"text-muted\">Price : ");
#nullable restore
#line 46 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(Model.Price);
#line default
#line hidden
#nullable disable
WriteLiteral(@"</p>
</div>
</div>
<h6>Ingredients : </h6>
<hr class=""mt-0 mb-4"">
<div class=""row pt-1"">
<table class=""table table-bordered"">
<thead>
<tr>
<td>#</td>
<td>Name</td>
<td>Description</td>
<td>Ratio</td>
</tr>
</thead>
<tbody>
");
#nullable restore
#line 63 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
foreach (var ing in Model.MedicineIngredients)
{
#line default
#line hidden
#nullable disable
WriteLiteral(" <tr class=\" mb-3\">\r\n <td>");
#nullable restore
#line 66 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(a+=1);
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 67 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(ing.Ingredient.Name);
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 68 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(ing.Ingredient.Description);
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
Write(ing.Ratio);
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n\r\n </tr>\r\n");
#nullable restore
#line 72 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicineDetails.cshtml"
}
#line default
#line hidden
#nullable disable
WriteLiteral(@" </tbody>
</table>
</div>
<div class=""row pt-1"">
<div class=""col-6 mb-3"">
<h6>Go To list </h6>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4de457be887fbbb37b649872c3c6cd7e099e0ac517244", async() => {
WriteLiteral("Back to List");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
");
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[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<Medicine> Html { get; private set; }
}
}
#pragma warning restore 1591
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicinesGalary.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6597057a3c0cb60732e76df3e3b4adfcd617f198"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicinesGalary.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f388de96728e624cc50372185fc0eb996ca1ee35"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_MedicinesGalary), @"mvc.1.0.view", @"/Views/Home/MedicinesGalary.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6597057a3c0cb60732e76df3e3b4adfcd617f198", @"/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")]
public class Views_Home_MedicinesGalary : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Medicine>>
{
......@@ -116,7 +116,7 @@ WriteAttributeValue("", 748, item.Image, 748, 11, false);
<h5 class=""card-title"">");
#nullable restore
#line 22 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\MedicinesGalary.cshtml"
Write(item.Name);
Write(item.TradeName);
#line default
#line hidden
......@@ -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, "6597057a3c0cb60732e76df3e3b4adfcd617f1987769", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f388de96728e624cc50372185fc0eb996ca1ee357774", async() => {
WriteLiteral("Add to my Profile");
}
);
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d472bd323580e9a467cefe98a08c5342da644f3e"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2aaad417d02a9d594d487d249bdd6777bf9525ec"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Create), @"mvc.1.0.view", @"/Views/Medicine/Create.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d472bd323580e9a467cefe98a08c5342da644f3e", @"/Views/Medicine/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2aaad417d02a9d594d487d249bdd6777bf9525ec", @"/Views/Medicine/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Create : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Medicine>
{
......@@ -91,9 +91,9 @@ using System;
#line hidden
#nullable disable
WriteLiteral("\r\n<h1>Create</h1>\r\n\r\n<h4>Project</h4>\r\n<hr />\r\n<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e6315", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec6315", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e6585", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec6585", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
......@@ -114,15 +114,15 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSumma
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e8304", async() => {
WriteLiteral("\r\n <div class=\"form-group\">\r\n <div class=\"col-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec8349", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 19 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line 20 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -137,14 +137,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e9890", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec9944", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 20 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -159,14 +159,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e11470", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec11533", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line 22 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -180,14 +180,80 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e13191", async() => {
WriteLiteral("\r\n </div>\r\n <div class=\"col-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec13266", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 25 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec14866", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 26 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec16460", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec18261", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -203,13 +269,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e14785", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec19859", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 25 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 33 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -225,13 +291,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e16373", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec21451", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 26 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 34 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -246,14 +312,80 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e18101", async() => {
WriteLiteral("\r\n </div>\r\n <div class=\"col-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec23186", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 29 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 37 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec24783", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 38 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec26374", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec28127", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 43 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -269,13 +401,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e19690", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec29716", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -291,13 +423,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e21273", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec31299", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 31 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 45 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -312,15 +444,59 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e22996", async() => {
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col-5\">\r\n <label for=\"Category\" class=\"control-label\"></label>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec33147", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 50 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec34741", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 51 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col-5\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec36482", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 34 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line 55 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
......@@ -335,14 +511,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e24592", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec38084", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
......@@ -357,14 +533,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e26182", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec39680", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
......@@ -378,14 +554,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e27912", async() => {
WriteLiteral("\r\n\r\n </div>\r\n\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec41446", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 63 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -401,13 +577,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e29500", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec43034", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 40 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 64 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -423,13 +599,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e31082", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec44616", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 41 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 65 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -445,13 +621,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e32804", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec46338", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 68 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -467,13 +643,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d472bd323580e9a467cefe98a08c5342da644f3e34392", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2aaad417d02a9d594d487d249bdd6777bf9525ec47926", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 45 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -489,13 +665,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e35974", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec49508", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 46 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 70 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -527,7 +703,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n</div>\r\n\r\n<div>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d472bd323580e9a467cefe98a08c5342da644f3e39012", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2aaad417d02a9d594d487d249bdd6777bf9525ec52546", async() => {
WriteLiteral("Back to List");
}
);
......@@ -546,7 +722,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 84 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8dfc9ddd6ac10e54ee8a010d9a0b1f3447889c97"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e367546a4b9fc101f282705b60c549c64aa41e83"
// <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")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8dfc9ddd6ac10e54ee8a010d9a0b1f3447889c97", @"/Views/Medicine/Delete.cshtml")]
[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>
{
......@@ -88,7 +88,7 @@ using System;
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.Name));
Write(Html.DisplayNameFor(model => model.TradeName));
#line default
#line hidden
......@@ -96,7 +96,7 @@ using System;
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.Name));
Write(Html.DisplayFor(model => model.TradeName));
#line default
#line hidden
......@@ -150,9 +150,9 @@ using System;
#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, "8dfc9ddd6ac10e54ee8a010d9a0b1f3447889c977698", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e367546a4b9fc101f282705b60c549c64aa41e837708", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8dfc9ddd6ac10e54ee8a010d9a0b1f3447889c977964", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e367546a4b9fc101f282705b60c549c64aa41e837974", 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, "8dfc9ddd6ac10e54ee8a010d9a0b1f3447889c979744", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e367546a4b9fc101f282705b60c549c64aa41e839754", async() => {
WriteLiteral("Back to List");
}
);
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "becfdc852f1b8ed8f17eaff07c395972786ee694"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "63facbc62168b42781e47ea83818a4a99b4a97d4"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Details), @"mvc.1.0.view", @"/Views/Medicine/Details.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"becfdc852f1b8ed8f17eaff07c395972786ee694", @"/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")]
public class Views_Medicine_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Medicine>
{
......@@ -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, "becfdc852f1b8ed8f17eaff07c395972786ee6946670", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "63facbc62168b42781e47ea83818a4a99b4a97d46670", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -124,7 +124,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
WriteLiteral("\r\n <h5>");
#nullable restore
#line 19 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Name);
Write(Model.TradeName);
#line default
#line hidden
......@@ -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, "becfdc852f1b8ed8f17eaff07c395972786ee6949021", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d49026", 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, "becfdc852f1b8ed8f17eaff07c395972786ee69411306", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d411311", async() => {
WriteLiteral("\r\n\r\n <i class=\"far fa-backward\">\r\n\r\n </i>\r\n Go Back\r\n ");
}
);
......@@ -204,7 +204,7 @@ AddHtmlAttributeValue("", 685, Model.Image, 685, 12, false);
WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n <h6>Medicine Type:");
#nullable restore
#line 43 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.MedicineType);
Write(Model.MedicineType?.TypeName);
#line default
#line hidden
......@@ -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, "becfdc852f1b8ed8f17eaff07c395972786ee69417363", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d417378", 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, "becfdc852f1b8ed8f17eaff07c395972786ee69418749", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63facbc62168b42781e47ea83818a4a99b4a97d418764", async() => {
WriteLiteral("Add ");
}
);
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Edit), @"mvc.1.0.view", @"/Views/Medicine/Edit.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b", @"/Views/Medicine/Edit.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"52ecc5aef3c276b99f58c1ff223ad44f023ba0dd", @"/Views/Medicine/Edit.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Edit : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.Entities.Medicine>
{
......@@ -93,9 +93,9 @@ using System;
#line hidden
#nullable disable
WriteLiteral("<div style=\"padding:120px ;\">\r\n\r\n <h1>Edit</h1>\r\n\r\n <h4>Project</h4>\r\n <hr />\r\n <div class=\"row p-120\">\r\n <div class=\"col-md-4\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b7356", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd7356", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b7630", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd7630", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
......@@ -117,14 +117,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSumma
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b9355", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd9355", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 19 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -139,14 +139,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b10943", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd10948", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 20 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -161,14 +161,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b12526", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd12536", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
#line hidden
......@@ -183,7 +183,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b14257", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd14272", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
......@@ -205,7 +205,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b15853", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd15868", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -227,7 +227,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b17443", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd17458", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -249,7 +249,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col \">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b19229", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd19244", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
......@@ -271,7 +271,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b20824", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd20839", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -293,7 +293,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b22413", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd22428", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -315,7 +315,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b24155", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd24170", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
......@@ -337,7 +337,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b25749", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd25764", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -359,7 +359,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b27337", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd27352", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -381,7 +381,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col \">\r\n <label for=\"Category.Name\" class=\"control-label\"></label>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b29236", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd29251", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -403,7 +403,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b30832", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd30847", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -425,14 +425,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b32581", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd32596", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 49 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
......@@ -447,14 +447,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b34191", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd34200", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 50 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
......@@ -469,13 +469,145 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b35795", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd35798", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 51 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col \">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd37618", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd39220", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd40816", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd42565", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd44175", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 63 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd45779", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 64 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
......@@ -490,14 +622,80 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b37573", async() => {
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"col \">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd47605", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd49204", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 70 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd50797", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 71 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd52568", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 55 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -513,13 +711,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b39163", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd54158", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
#line 77 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -535,13 +733,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b40747", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd55742", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
#line 78 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Image);
#line default
......@@ -557,7 +755,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b42433", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd57428", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -565,7 +763,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
#line 81 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Id);
#line default
......@@ -597,7 +795,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n <div>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc304f2a95dd9f725d3a9d1a24b0eb23fd93cc1b45610", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "52ecc5aef3c276b99f58c1ff223ad44f023ba0dd60605", async() => {
WriteLiteral("Back to List");
}
);
......@@ -616,7 +814,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 74 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
#line 95 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Edit.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Index), @"mvc.1.0.view", @"/Views/Medicine/Index.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8f77abfa4571c4b27c43dc5ff0bb7f34024763fe", @"/Views/Medicine/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"61491ef26817e58e2b8c2c4e0f79f368a15e1bcf", @"/Views/Medicine/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<ApplicationCore.ViewModel.PatientMedicineViewModel>
{
......@@ -245,7 +245,7 @@ using System;
#line hidden
#nullable disable
WriteLiteral("\r\n </td>\r\n <td>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe11817", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf11817", async() => {
WriteLiteral("<i class=\"far fa-pen-to-square text-bg-info\"></i>");
}
);
......@@ -278,7 +278,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe14269", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf14269", async() => {
WriteLiteral("<i class=\"far fa-address-card\"></i>");
}
);
......@@ -311,7 +311,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe16710", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf16710", async() => {
WriteLiteral("<i class=\"far fa-trash-can text-bg-danger\"></i>");
}
);
......@@ -355,7 +355,7 @@ using System;
BeginWriteAttribute("class", " class=\"", 3700, "\"", 3708, 0);
EndWriteAttribute();
WriteLiteral("></i>\r\n Medicines Details\r\n <p>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe19676", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf19676", async() => {
WriteLiteral("Create New");
}
);
......@@ -382,7 +382,7 @@ using System;
WriteLiteral("\r\n\r\n </th>\r\n <th scope=\"col\">\r\n\r\n ");
#nullable restore
#line 130 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml"
Write(Html.DisplayNameFor(model => model.Medicines.First().Name));
Write(Html.DisplayNameFor(model => model.Medicines.First().TradeName));
#line default
#line hidden
......@@ -452,7 +452,7 @@ using System;
WriteLiteral("\r\n </td>\r\n <td>\r\n ");
#nullable restore
#line 179 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Name));
Write(Html.DisplayFor(modelItem => item.TradeName));
#line default
#line hidden
......@@ -490,7 +490,7 @@ using System;
#line hidden
#nullable disable
WriteLiteral("\r\n </td>\r\n <td>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe25579", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf25589", async() => {
WriteLiteral("<i class=\"far fa-pen-to-square text-bg-info\"></i>");
}
);
......@@ -523,7 +523,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe28024", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf28034", async() => {
WriteLiteral("<i class=\"far fa-address-card\"></i>");
}
);
......@@ -556,7 +556,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f77abfa4571c4b27c43dc5ff0bb7f34024763fe30458", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "61491ef26817e58e2b8c2c4e0f79f368a15e1bcf30468", async() => {
WriteLiteral("<i class=\"far fa-trash-can text-bg-danger\"></i>");
}
);
......@@ -591,7 +591,7 @@ using System;
WriteLiteral("\r\n </td>\r\n <td>\r\n ");
#nullable restore
#line 199 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Patients.Count));
Write(Html.DisplayFor(modelItem => item.MedicalStates.Count));
#line default
#line hidden
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5bb5aa3c9098f540ad637954d749e75b07af29e4"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "53738c525829c1192a22ac24525d1075097e188c"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared__AdminLayout), @"mvc.1.0.view", @"/Views/Shared/_AdminLayout.cshtml")]
......@@ -46,7 +46,7 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"5bb5aa3c9098f540ad637954d749e75b07af29e4", @"/Views/Shared/_AdminLayout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"53738c525829c1192a22ac24525d1075097e188c", @"/Views/Shared/_AdminLayout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Shared__AdminLayout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
......@@ -92,7 +92,7 @@ using Microsoft.AspNetCore.Identity;
{
WriteLiteral("\r\n");
WriteLiteral("\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e48210", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c8210", async() => {
WriteLiteral("\r\n <meta charset=\"utf-8\" />\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\" />\r\n <meta name=\"description\"");
BeginWriteAttribute("content", " content=\"", 380, "\"", 390, 0);
EndWriteAttribute();
......@@ -125,7 +125,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e410362", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c10362", async() => {
WriteLiteral(@"
<nav class=""sb-topnav navbar navbar-expand navbar-dark bg-dark"">
<!-- Navbar Brand-->
......@@ -133,7 +133,7 @@ using Microsoft.AspNetCore.Identity;
<button class=""btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0"" id=""sidebarToggle"" href=""#!""><i class=""fas fa-bars""></i></button>
<!-- Navbar Search-->
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e410944", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c10944", async() => {
WriteLiteral(@"
<div class=""input-group"">
<input class=""form-control"" type=""text"" placeholder=""Search for..."" aria-label=""Search for..."" aria-describedby=""btnNavbarSearch"" />
......@@ -170,7 +170,7 @@ using Microsoft.AspNetCore.Identity;
#line hidden
#nullable disable
WriteLiteral("</a></li>\r\n <li><hr class=\"dropdown-divider\" /></li>\r\n <li>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e413689", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c13689", async() => {
WriteLiteral("\r\n <button id=\"logout\" type=\"submit\" class=\"nav-link rounded text-bg-dark js-scroll-trigger\">Logout</button>\r\n ");
}
);
......@@ -219,7 +219,7 @@ using Microsoft.AspNetCore.Identity;
<div class=""nav"">
<div class=""sb-sidenav-menu-heading"">Core</div>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e417364", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c17364", async() => {
WriteLiteral("\r\n <div class=\"sb-nav-link-icon\"><i class=\"fas fa-tachometer-alt\"></i></div>\r\n Dashboard\r\n ");
}
);
......@@ -245,7 +245,7 @@ using Microsoft.AspNetCore.Identity;
<div class=""collapse"" id=""collapseLayouts"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e419648", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c19648", async() => {
WriteLiteral("Add Patient ");
}
);
......@@ -264,7 +264,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e421207", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c21207", async() => {
WriteLiteral("ALL Patients ");
}
);
......@@ -285,7 +285,7 @@ using Microsoft.AspNetCore.Identity;
WriteLiteral(@"
</nav>
</div>
<a class=""nav-link collapsed"" href=""#"" data-bs-toggle=""ing"" data-bs-target=""#ing"" aria-expanded=""false"" aria-controls=""collapseLayouts"">
<a class=""nav-link collapsed"" href=""#"" data-bs-toggle=""collapse"" data-bs-target=""#ing"" aria-expanded=""false"" aria-controls=""collapseLayouts"">
<div class=""sb-nav-link-icon""><i class=""fas fa-columns""></i></div>
Ingredients Manage
<div class=""sb-sidenav-collapse-arrow""><i class=""fas fa-angle-down""></i></div>
......@@ -293,7 +293,7 @@ using Microsoft.AspNetCore.Identity;
<div class=""collapse"" id=""ing"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e423499", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c23504", async() => {
WriteLiteral("Add Ingredient ");
}
);
......@@ -312,7 +312,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e425061", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c25066", async() => {
WriteLiteral("ALL Ingredients ");
}
);
......@@ -342,7 +342,7 @@ using Microsoft.AspNetCore.Identity;
<div class=""collapse"" id=""cPages"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e427369", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c27374", async() => {
WriteLiteral("Add Medicine ");
}
);
......@@ -361,7 +361,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5bb5aa3c9098f540ad637954d749e75b07af29e428931", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53738c525829c1192a22ac24525d1075097e188c28936", async() => {
WriteLiteral("ALL Medicines ");
}
);
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4337419969c7499defa0fcb57d4838fdf94b2aa0"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "007c3c43f2b06ffd1e5c015903c43f56947b5d66"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared__Layout), @"mvc.1.0.view", @"/Views/Shared/_Layout.cshtml")]
......@@ -39,7 +39,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4337419969c7499defa0fcb57d4838fdf94b2aa0", @"/Views/Shared/_Layout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"007c3c43f2b06ffd1e5c015903c43f56947b5d66", @"/Views/Shared/_Layout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afde39527760d3d287f4d84a4731a7fb9211e4e9", @"/Views/_ViewImports.cshtml")]
public class Views_Shared__Layout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
......@@ -83,23 +83,30 @@ using System;
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("<!DOCTYPE html>\r\n<html lang=\"en\">\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa08076", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d668076", async() => {
WriteLiteral("\r\n\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\r\n <meta name=\"description\"");
BeginWriteAttribute("content", " content=\"", 210, "\"", 220, 0);
EndWriteAttribute();
WriteLiteral(">\r\n <meta name=\"author\"");
BeginWriteAttribute("content", " content=\"", 247, "\"", 257, 0);
EndWriteAttribute();
WriteLiteral(">\r\n\r\n <title> ");
WriteLiteral(@">
<!-- Google Fonts -->
<link href=""https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"" rel=""stylesheet"">
<!-- Template Main CSS File -->
<link href=""/css/stylemedlab.css"" rel=""stylesheet"">
<title> ");
#nullable restore
#line 15 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 20 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(ViewData["title"]);
#line default
#line hidden
#nullable disable
WriteLiteral("</title>\r\n\r\n <!-- Custom fonts for this theme -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "4337419969c7499defa0fcb57d4838fdf94b2aa09148", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "007c3c43f2b06ffd1e5c015903c43f56947b5d669504", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -115,7 +122,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <link href=\"https://fonts.googleapis.com/css?family=Montserrat:400,700\" rel=\"stylesheet\" type=\"text/css\">\r\n <link href=\"https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic\" rel=\"stylesheet\" type=\"text/css\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4337419969c7499defa0fcb57d4838fdf94b2aa010666", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "007c3c43f2b06ffd1e5c015903c43f56947b5d6611022", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -130,7 +137,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <!-- Theme CSS -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "4337419969c7499defa0fcb57d4838fdf94b2aa011871", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "007c3c43f2b06ffd1e5c015903c43f56947b5d6612227", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -157,16 +164,17 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa013763", async() => {
WriteLiteral("\r\n\r\n <!-- Navigation -->\r\n <nav class=\"navbar navbar-expand-lg bg-secondary text-uppercase fixed-top\" id=\"mainNav\">\r\n <div class=\"container\">\r\n <a class=\"navbar-brand js-scroll-trigger\" href=\"#page-top\">");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d6614119", async() => {
WriteLiteral("\r\n\r\n <!-- Navigation -->\r\n <nav class=\"navbar navbar-expand-lg bg-secondary text-uppercase fixed-top\" id=\"mainNav\">\r\n <div class=\"container\">\r\n <a class=\"navbar-brand js-scroll-trigger\" href=\"#page-top\">\r\n\r\n ");
#nullable restore
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(ViewData["userName"]);
#line default
#line hidden
#nullable disable
WriteLiteral(@"</a>
WriteLiteral(@"
</a>
<button class=""navbar-toggler navbar-toggler-right text-uppercase font-weight-bold bg-primary text-white rounded"" type=""button"" data-toggle=""collapse"" data-target=""#navbarResponsive"" aria-controls=""navbarResponsive"" aria-expanded=""false"" aria-label=""Toggle navigation"">
Menu
<i class=""fas fa-bars""></i>
......@@ -180,9 +188,9 @@ using System;
<a class=""nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"" href=""#galary"">Galary</a>
</li>
<li class=""nav-item mx-0 mx-lg-1"">
<a class=""nav-link py-3 px-0 px-lg-3 rou");
WriteLiteral("nded js-scroll-trigger\" href=\"#contact\">Contact</a>\r\n </li>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4337419969c7499defa0fcb57d4838fdf94b2aa015758", async() => {
<a class=""nav-link py-3 px");
WriteLiteral("-0 px-lg-3 rounded js-scroll-trigger\" href=\"#contact\">Contact</a>\r\n </li>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "007c3c43f2b06ffd1e5c015903c43f56947b5d6616099", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
......@@ -196,9 +204,9 @@ using System;
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </ul>\r\n \r\n </div>\r\n </div>\r\n </nav>\r\n\r\n <!--Main Content-->\r\n <main>\r\n ");
WriteLiteral("\r\n </ul>\r\n\r\n </div>\r\n </div>\r\n </nav>\r\n\r\n <!--Main Content-->\r\n <main>\r\n ");
#nullable restore
#line 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 66 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(RenderBody());
#line default
......@@ -269,7 +277,7 @@ using System;
<!-- Bootstrap core JavaScript -->
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa019810", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d6620135", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -283,7 +291,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa020910", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d6621235", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -297,7 +305,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n <!-- Plugin JavaScript -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa022048", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d6622373", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -311,7 +319,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n <!-- Custom scripts for this template -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4337419969c7499defa0fcb57d4838fdf94b2aa023201", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "007c3c43f2b06ffd1e5c015903c43f56947b5d6623526", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -326,7 +334,7 @@ using System;
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
#nullable restore
#line 128 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 136 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(RenderSection("Scripts", required: false));
#line default
......
680663d68e3317b60aa25a17e67b93a6a2efd859
fb1564ea4e147e20a3ceb3d9a04e5f04a8cb1ef9
a53e73f7f914b053025c2ef5fb06521fb51ec284
77951ff650501ba7b41b814325a82f2ab7a2cc25
......@@ -139,7 +139,6 @@ C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\WebPresentation.Ta
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\WebPresentation.TagHelpers.output.cache
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\WebPresentation.RazorCoreGenerate.cache
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Home\Index.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Home\MedicineDetails.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Home\Privacy.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Medicine\Create.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Medicine\Delete.cshtml.g.cs
......@@ -170,3 +169,9 @@ C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Ingred
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Ingredient\Index.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Access\Login.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Access\Register.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Home\MedicalStateDetails.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\MedicalState\Create.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\MedicalState\Details.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\MedicalState\Edit.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\MedicalState\Index.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\MedicalState\AddMedicine.cshtml.g.cs
/**
* Template Name: Medilab
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
font-family: "Open Sans", sans-serif;
color: #444444;
}
a {
color: #1977cc;
text-decoration: none;
}
a:hover {
color: #3291e6;
text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Raleway", sans-serif;
}
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
padding: 60px 0;
overflow: hidden;
}
.section-bg {
background-color: #f1f7fd;
}
.section-title {
text-align: center;
padding-bottom: 30px;
}
.section-title h2 {
font-size: 32px;
font-weight: bold;
margin-bottom: 20px;
padding-bottom: 20px;
position: relative;
color: #2c4964;
}
.section-title h2::before {
content: "";
position: absolute;
display: block;
width: 120px;
height: 1px;
background: #ddd;
bottom: 1px;
left: calc(50% - 60px);
}
.section-title h2::after {
content: "";
position: absolute;
display: block;
width: 40px;
height: 3px;
background: #1977cc;
bottom: 0;
left: calc(50% - 20px);
}
.section-title p {
margin-bottom: 0;
}
/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
text-align: center;
border: 1px solid #d5e1ed;
padding: 80px 20px;
transition: all ease-in-out 0.3s;
}
.services .icon-box .icon {
margin: 0 auto;
width: 64px;
height: 64px;
background: #1977cc;
border-radius: 5px;
transition: all 0.3s ease-out 0s;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
transform-style: preserve-3d;
position: relative;
z-index: 2;
}
.services .icon-box .icon i {
color: #fff;
font-size: 28px;
transition: ease-in-out 0.3s;
}
.services .icon-box .icon::before {
position: absolute;
content: "";
left: -8px;
top: -8px;
height: 100%;
width: 100%;
background: rgba(25, 119, 204, 0.2);
border-radius: 5px;
transition: all 0.3s ease-out 0s;
transform: translateZ(-1px);
z-index: -1;
}
.services .icon-box h4 {
font-weight: 700;
margin-bottom: 15px;
font-size: 24px;
}
.services .icon-box h4 a {
color: #2c4964;
}
.services .icon-box p {
line-height: 24px;
font-size: 14px;
margin-bottom: 0;
}
.services .icon-box:hover {
background: #1977cc;
border-color: #1977cc;
}
.services .icon-box:hover .icon {
background: #fff;
}
.services .icon-box:hover .icon i {
color: #1977cc;
}
.services .icon-box:hover .icon::before {
background: rgba(255, 255, 255, 0.3);
}
.services .icon-box:hover h4 a,
.services .icon-box:hover p {
color: #fff;
}
/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery .gallery-item {
overflow: hidden;
border-right: 3px solid #fff;
border-bottom: 3px solid #fff;
}
.gallery .gallery-item img {
transition: all ease-in-out 0.4s;
}
.gallery .gallery-item:hover img {
transform: scale(1.1);
}
/*--------------------------------------------------------------
/**
* Template Name: Medilab
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
(function() {
"use strict";
/**
* Easy selector helper function
*/
const select = (el, all = false) => {
el = el.trim()
if (all) {
return [...document.querySelectorAll(el)]
} else {
return document.querySelector(el)
}
}
/**
* Easy event listener function
*/
const on = (type, el, listener, all = false) => {
let selectEl = select(el, all)
if (selectEl) {
if (all) {
selectEl.forEach(e => e.addEventListener(type, listener))
} else {
selectEl.addEventListener(type, listener)
}
}
}
/**
* Easy on scroll event listener
*/
const onscroll = (el, listener) => {
el.addEventListener('scroll', listener)
}
/**
* Navbar links active state on scroll
*/
let navbarlinks = select('#navbar .scrollto', true)
const navbarlinksActive = () => {
let position = window.scrollY + 200
navbarlinks.forEach(navbarlink => {
if (!navbarlink.hash) return
let section = select(navbarlink.hash)
if (!section) return
if (position >= section.offsetTop && position <= (section.offsetTop + section.offsetHeight)) {
navbarlink.classList.add('active')
} else {
navbarlink.classList.remove('active')
}
})
}
window.addEventListener('load', navbarlinksActive)
onscroll(document, navbarlinksActive)
/**
* Scrolls to an element with header offset
*/
const scrollto = (el) => {
let header = select('#header')
let offset = header.offsetHeight
let elementPos = select(el).offsetTop
window.scrollTo({
top: elementPos - offset,
behavior: 'smooth'
})
}
/**
* Toggle .header-scrolled class to #header when page is scrolled
*/
let selectHeader = select('#header')
let selectTopbar = select('#topbar')
if (selectHeader) {
const headerScrolled = () => {
if (window.scrollY > 100) {
selectHeader.classList.add('header-scrolled')
if (selectTopbar) {
selectTopbar.classList.add('topbar-scrolled')
}
} else {
selectHeader.classList.remove('header-scrolled')
if (selectTopbar) {
selectTopbar.classList.remove('topbar-scrolled')
}
}
}
window.addEventListener('load', headerScrolled)
onscroll(document, headerScrolled)
}
/**
* Back to top button
*/
let backtotop = select('.back-to-top')
if (backtotop) {
const toggleBacktotop = () => {
if (window.scrollY > 100) {
backtotop.classList.add('active')
} else {
backtotop.classList.remove('active')
}
}
window.addEventListener('load', toggleBacktotop)
onscroll(document, toggleBacktotop)
}
/**
* Mobile nav toggle
*/
on('click', '.mobile-nav-toggle', function(e) {
select('#navbar').classList.toggle('navbar-mobile')
this.classList.toggle('bi-list')
this.classList.toggle('bi-x')
})
/**
* Mobile nav dropdowns activate
*/
on('click', '.navbar .dropdown > a', function(e) {
if (select('#navbar').classList.contains('navbar-mobile')) {
e.preventDefault()
this.nextElementSibling.classList.toggle('dropdown-active')
}
}, true)
/**
* Scrool with ofset on links with a class name .scrollto
*/
on('click', '.scrollto', function(e) {
if (select(this.hash)) {
e.preventDefault()
let navbar = select('#navbar')
if (navbar.classList.contains('navbar-mobile')) {
navbar.classList.remove('navbar-mobile')
let navbarToggle = select('.mobile-nav-toggle')
navbarToggle.classList.toggle('bi-list')
navbarToggle.classList.toggle('bi-x')
}
scrollto(this.hash)
}
}, true)
/**
* Scroll with ofset on page load with hash links in the url
*/
window.addEventListener('load', () => {
if (window.location.hash) {
if (select(window.location.hash)) {
scrollto(window.location.hash)
}
}
});
/**
* Preloader
*/
let preloader = select('#preloader');
if (preloader) {
window.addEventListener('load', () => {
preloader.remove()
});
}
/**
* Initiate glightbox
*/
const glightbox = GLightbox({
selector: '.glightbox'
});
/**
* Initiate Gallery Lightbox
*/
const galelryLightbox = GLightbox({
selector: '.galelry-lightbox'
});
/**
* Testimonials slider
*/
new Swiper('.testimonials-slider', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
},
breakpoints: {
320: {
slidesPerView: 1,
spaceBetween: 20
},
1200: {
slidesPerView: 2,
spaceBetween: 20
}
}
});
/**
* Initiate Pure Counter
*/
new PureCounter();
})()
\ No newline at end of file
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