Commit f402feed authored by hasan khaddour's avatar hasan khaddour

fix s

parent a8be0ff8
using ApplicationCore.DTOs;
using ApplicationCore.Interfaces.IAuthentication;
using ApplicationDomain.Entities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
......@@ -42,7 +41,34 @@ namespace ApplicationCore.Authentication
}
public async Task<IdentityResult> Register(RegisterInputDTO registerInputDTO)
public async Task<AuthenticationResult> ChangePassword(ChangePasswordRequest changePasswordRequest)
{
var user = await _userManager.FindByEmailAsync(changePasswordRequest.Email);
if (user == null)
{
var r = new AuthenticationResult(false);
r.AddError("the email not exists ");
return r;
}
var changePasswordResult = await _userManager.ChangePasswordAsync(user, changePasswordRequest.CurrentPassword, changePasswordRequest.NewPassword);
if (!changePasswordResult.Succeeded)
{
var resul = new AuthenticationResult(false);
foreach (var err in changePasswordResult.Errors)
{
resul.AddError(err.Description);
}
await _signInManager.RefreshSignInAsync(user);
return resul;
}
return new AuthenticationResult(true);
}
public async Task<AuthenticationResult> Register(RegisterInputDTO registerInputDTO)
{
var patient = new Patient {
BIO =registerInputDTO.Patient.BIO
......@@ -68,16 +94,23 @@ namespace ApplicationCore.Authentication
{
await _signInManager.SignInAsync(user, isPersistent: false);
return IdentityResult.Success;
return new AuthenticationResult(true);
}
else {
return result;
var resul = new AuthenticationResult(false);
foreach (var err in result.Errors) {
resul.AddError(err.Description);
}
return resul;
}
}
var res = new AuthenticationResult(false);
foreach (var err in result.Errors)
{
res.AddError(err.Description);
}
return res;
return result;
}
public async Task SignIn(User user, bool isPersisted)
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.DTOs
{
public class AuthenticationResult
{
public bool Success { get; set; }
public string Error { get; set; }
public string Token { get; set; }
public IEnumerable<string> Errors { get; set; }
public AuthenticationResult(bool status)
{
Errors = new List<string>();
Success = status;
}
public void AddError(string error)
{
((List<string>)Errors).Add(error);
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.DTOs
{
public class ChangePasswordRequest
{
public String Email { get; set; }
public String NewPassword { get; set; }
public String CurrentPassword { get; set; }
}
}
using ApplicationCore.DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using ApplicationDomain.Entities;
namespace ApplicationCore.Interfaces.IAuthentication
......@@ -12,8 +8,9 @@ namespace ApplicationCore.Interfaces.IAuthentication
public interface IAuthenticationManager
{
Task<Boolean> Authenticate(LoginInputDTO loginInputDTO);
Task<IdentityResult> Register(RegisterInputDTO registerInputDTO);
Task<AuthenticationResult> Register(RegisterInputDTO registerInputDTO);
Task SignOut();
Task SignIn(User user , bool isPersisted );
Task<AuthenticationResult> ChangePassword(ChangePasswordRequest changePasswordRequest);
}
}
......@@ -16,7 +16,8 @@ namespace ApplicationCore.Services
public MedicineService(
IUnitOfWork<Medicine> medicineUnitOfWork,
IMapper Mapper )
IMapper Mapper
)
:base(medicineUnitOfWork , Mapper)
{
_specification = new MedicineWithIngredientsSpecification();
......@@ -24,12 +25,13 @@ namespace ApplicationCore.Services
}
public void AddToMedicalState(MedicalStateMedicineDTO medicalStateMedicineDto)
{
var medicalState = _unitOfWork.Entity.GetById(medicalStateMedicineDto.MedicineId, _specification).Result;
if (medicalState.MedicalStateMedicines is null)
medicalState.MedicalStateMedicines = new List<MedicalStateMedicine>();
foreach (var i in medicalState.MedicalStateMedicines)
{
if (
......@@ -54,28 +56,37 @@ namespace ApplicationCore.Services
public void RemoveFromMedicalState(MedicalStateMedicineDTO medicalStateMedicineDto)
{
var medicalState = _unitOfWork.MedicalStates.GetById(medicalStateMedicineDto.MedicalStateId, _medicalSpecification).Result;
if (medicalState.MedicalStateMedicines is null)
if (medicalState.MedicalStateMedicines is null) {
throw new DomainException("you dont have this medicine");
}
var d = _unitOfWork.Entity.GetById(medicalStateMedicineDto.MedicineId, _specification).Result;
if(! medicalState.Medicines.Remove(d))
if (!medicalState.Medicines.Remove(d)) {
throw new DomainException("you dont have this medicine");
}
_unitOfWork.MedicalStates.Update(medicalState);
_unitOfWork.Commit();
}
public MedicineDTO GetMedicineIngredentisDetails(int medicineId) {
return _mapper.Map<MedicineDTO>(_unitOfWork.Entity
return _mapper.Map<MedicineDTO>(
_unitOfWork.Entity
.GetById(medicineId ,
_specification));
_specification
)
);
}
public async Task<IEnumerable<MedicineIngredientDTO>> GetMedicineIngredients(int id)
{
var r = await _unitOfWork.Medicines.GetById(id,_specification);
return _mapper.Map<IEnumerable<MedicineIngredientDTO>>( r.Ingredients);
return _mapper.Map<IEnumerable<MedicineIngredientDTO>>( r.MedicineIngredients);
}
}
}
......@@ -9,18 +9,20 @@ using WebPresentation.Filters.ImageLoad;
using AutoMapper;
using ApplicationCore.Interfaces.IAuthentication;
using ApplicationCore.DTOs;
using WebPresentation.ViewModels;
namespace WebPresentation.Controllers
{
[AllowAnonymous]
public class AccessController : Controller
public class AccessController : BaseController
{
private readonly IMapper _mapper;
private readonly IAuthenticationManager _authenticationManager;
public AccessController(IAuthenticationManager authenticationManager,
IMapper mapper )
IMapper mapper,
UserManager<User> userManager ):base(userManager)
{
_mapper = mapper;
_authenticationManager = authenticationManager;
......@@ -76,14 +78,14 @@ namespace WebPresentation.Controllers
var result = await _authenticationManager.Register(registerInput);
if (result.Succeeded)
if (result.Success)
{
return LocalRedirect(Input.ReturnUrl);
}
foreach (var error in result.Errors)
{
ModelState.AddModelError(string.Empty, error.Description);
ModelState.AddModelError(string.Empty, error);
}
}
......@@ -102,5 +104,30 @@ namespace WebPresentation.Controllers
return Redirect("/Home/Index");
}
}
[Authorize]
public async Task<IActionResult> ChangePassword(ChangePasswordViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
var dto = _mapper.Map<ChangePasswordRequest>(model);
dto.Email = GetCurrentUser().Email;
var result =await _authenticationManager.ChangePassword(dto);
if (!result.Success)
{
foreach (var error in result.Errors)
{
ModelState.AddModelError(string.Empty, error);
}
return View(model);
}
return RedirectToAction("index","home");
}
}
}
......@@ -28,6 +28,7 @@ namespace WebPresentation.Controllers
}
return _criteriaProtected;
} set { _criteriaProtected = value; } }
public CRUDController(
UserManager<User> userManager,
IService<TDto> service,
......@@ -100,8 +101,15 @@ namespace WebPresentation.Controllers
}
[HttpPost, ActionName("Delete")]
public IActionResult DeleteConfirmed(int id)
public async Task<IActionResult> DeleteConfirmed(int id)
{
TDto DetailDto = await _service.GetDetails(id);
if (DetailDto == null || !_criteria(DetailDto))
{
return PartialView("PartialNotFound");
}
_service.Delete(id);
return RedirectToAction("Index");
}
......@@ -139,7 +147,7 @@ namespace WebPresentation.Controllers
if (id != viewModel.Id)
{
return NotFound();
return PartialView("PartialNotFound");
}
TDto dto ;
if (ModelState.IsValid)
......@@ -156,37 +164,38 @@ namespace WebPresentation.Controllers
return View("Error");
}
return RedirectToAction("Details",new { id=dto.Id});
return Json(new { success = true, redirectUrl = Url.Action("Details", new { id = viewModel.Id }) });
}
return View(viewModel);
return PartialView(viewModel);
}
public IActionResult Create()
{
return View();
return PartialView();
}
[HttpPost]
[ValidateAntiForgeryToken]
[StateValidationFilter]
[ImageLoadFilter]
public virtual IActionResult Create(TVModel viewModel, int id)
{
if (ModelState.IsValid)
{
TDto dto = _mapper.Map<TDto>(viewModel);
if (viewModel == null || !_criteria(dto))
{
return View(viewModel);
return PartialView(viewModel);
}
dto = _service.Create(dto);
viewModel = _mapper.Map<TVModel>(dto);
return RedirectToAction("Details", new { id = viewModel.Id });
return Json(new { success = true, redirectUrl = Url.Action("Details", new { id = viewModel.Id }) });
}
return View(viewModel);
}
#region json format
......
......@@ -59,7 +59,7 @@ namespace WebPresentation.Controllers
[HttpPost]
[ValidateAntiForgeryToken]
[ImageLoadFilter]
public IActionResult Edit(int id, [FromForm] PatientViewModel viewModel)
public async Task<IActionResult> Edit(int id, [FromForm] PatientViewModel viewModel)
{
if (id != viewModel.Id)
{
......@@ -75,7 +75,17 @@ namespace WebPresentation.Controllers
dto = _mapper.Map<PatientDTO>(viewModel);
dto.User.Avatar= viewModel.ImageName;
dto = _patientService.Update(dto);
{
var t = GetCurrentUser();
dto.User.UserName = t.UserName;
dto.User.CreationTime = t.CreationTime;
dto.User.Email = t.Email;
}
//dto.User.Patient = _mapper.Map<Patient>(dto);
//var r =await _userManager.UpdateAsync(dto.User);
// if (!r.Succeeded) {
// return View(viewModel);
// }
}
catch (DbUpdateConcurrencyException)
{
......
......@@ -10,6 +10,8 @@ using WebPresentation.ViewModels;
using AutoMapper;
using System.Collections.Generic;
using ApplicationDomain.Exceptions;
using WebPresentation.Filters.ImageLoad;
using WebPresentation.Filters.ModelStateValidation;
namespace WebPresentation.Controllers
{
......@@ -38,27 +40,24 @@ namespace WebPresentation.Controllers
[HttpPost]
[ValidateAntiForgeryToken]
[StateValidationFilter]
[ImageLoadFilter]
public override IActionResult Create(MedicalStateViewModel medicalState, int id)
{
if (ModelState.IsValid)
{
var uId = GetUserId();
var p = _patientService.GetByUserId(uId).Result.Id;
var patientId = _patientService.GetByUserId(uId).Result.Id;
if (medicalState.PrescriptionTime == DateTime.MinValue )
medicalState.PrescriptionTime = DateTime.Now;
var n= ((IMedicalStateService)_service).AddToPateint(p,_mapper.Map<MedicalStateDTO>(medicalState));
var n= ((IMedicalStateService)_service)
.AddToPateint(patientId, _mapper.Map<MedicalStateDTO>(medicalState));
return RedirectToAction("Details", "MedicalState" , new { Id =n.Id });
}
return View(medicalState);
}
protected override Func<MedicalStateDTO, bool> GetCriteria()
{
var u = _patientService.GetByUserId(GetUserId()).Result.Id;
_criteria = p => p.PatientId == u;
return _criteria;
}
#region json
......@@ -103,7 +102,7 @@ namespace WebPresentation.Controllers
MedicalStateMedicineDTO medicalStateMedicineModel = _mapper.Map<MedicalStateMedicineDTO>(medicalStateMedicine);
try
{
var medical = await _medicalStateService.GetDetails(medicalStateMedicine.MedicineId);
var medical = await _medicalStateService.GetDetails(medicalStateMedicine.MedicalStateId);
if (!_criteria(medical))
return Ok(new { message = "You try to Reomve a medicine for other patient and this is wrong , you shouldn't remove a medicine for others maybe this kill him", result = "faild" });
......@@ -149,5 +148,13 @@ namespace WebPresentation.Controllers
}
#endregion json
protected override Func<MedicalStateDTO, bool> GetCriteria()
{
var u = _patientService.GetByUserId(GetUserId()).Result.Id;
_criteria = p => p.PatientId == u;
return _criteria;
}
}
}
......@@ -7,6 +7,7 @@ using ApplicationCore.DTOs;
using System.Threading.Tasks;
using WebPresentation.ViewModels;
using AutoMapper;
using ApplicationDomain.Exceptions;
namespace WebPresentation.Controllers
{
......@@ -32,19 +33,37 @@ namespace WebPresentation.Controllers
[HttpPost]
public async Task<IActionResult> ReomveIngredient([FromBody] MedicineIngredientDTO medicineIngredientModel)
{
try
{
await _ingredientService.RemoveFromMedicine(medicineIngredientModel);
return Ok(new {message = "removed" ,result ="Successed"});
return Ok(new { message = "The Ingredient Removed Successfully", result = "add" });
}
catch (DomainException e)
{
return Ok(new { message = "Faild", result = e.Message });
}
}
[HttpPost]
public async Task<IActionResult> AddIngredient([FromBody] MedicineIngredientDTO medicineIngredientModel)
{
try
{
await _ingredientService.AddToMedicine(medicineIngredientModel);
return Ok(new { message = "added", result = "Successed" });
return Ok(new { message = "The Ingredient Added Successfully", result = "add" });
}
catch (DomainException e ) {
return Ok(new { message = "Faild", result =e.Message });
}
}
public async Task<IActionResult> GetMedcineIngredient(int id) {
public async Task<IActionResult> GetMedicineIngredient(int id) {
var r = await ((IMedicineService)_service).GetMedicineIngredients(id);
......
......@@ -17,12 +17,9 @@ namespace WebPresentation.Filters.ImageLoad
var imageUploaded = context.ActionArguments.Values.Where(p => p is IImageForm).FirstOrDefault();
var imageService = context.HttpContext.RequestServices.GetService(typeof(IImageService));
if(
(((IImageForm)imageUploaded).ImageFile != null )
&&
(((IImageForm)imageUploaded).ImageFile.Length != 0)){
if(imageUploaded is not null ){
var imagePath = ((IImageService)imageService).SaveImageAsync(((IImageForm)imageUploaded).ImageFile,context.Controller.GetType().Name).Result;
if(imagePath != "")
((IImageForm)imageUploaded).ImageName = imagePath; // You can pass other information as needed
}
......
......@@ -21,7 +21,7 @@ namespace WebPresentation.Filters.ModelStateValidation
{
var model = context.ActionArguments.Values.Where(p=> p is not int ).FirstOrDefault();
var actionName = context.ActionDescriptor.RouteValues["action"];
context.Result = controller.View(actionName, model);
context.Result = controller.PartialView(actionName, model);
return;
}
else
......
......@@ -10,6 +10,11 @@ namespace ApplicationCore.Mappere
{
public ViewModelObjectMapper()
{
CreateMap<ChangePasswordRequest, ChangePasswordViewModel>()
.ForMember(dest => dest.ConfirmPassword, opt => opt.Ignore());
CreateMap<ChangePasswordViewModel, ChangePasswordRequest>();
CreateMap<MedicineViewModel, MedicineDTO>()
.ForMember(dest => dest.Image, opt => opt.MapFrom(src => src.ImageName)) // Map ImageName from MedicineViewModel to Image in MedicineDTO
.ForMember(dest => dest.Ingredients, opt => opt.MapFrom(src => src.Ingredients))
......
......@@ -26,8 +26,15 @@ namespace WebPresentation.Midlewares
catch (Exception ex)
{
await HandleExceptionAsync(httpContext, ex);
}
}
private static Task HandleExceptionAsync(HttpContext context, Exception exception)
{
context.Response.Redirect("/Home/Error");
return Task.CompletedTask;
}
}
}
......@@ -25,10 +25,13 @@ namespace WebPresentation.Services
public async Task<string> SaveImageAsync(IFormFile file,String folderName)
{
if (file is null)
return "";
var uploadsFolderPath = Path.Combine(_uploadsFolderPath, folderName);
var uniqueFileName = Guid.NewGuid().ToString() + "_" + file.FileName;
var filePath = Path.Combine(uploadsFolderPath, uniqueFileName);
if (file.Length > 0)
......
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebPresentation.ViewModels
{
public class ChangePasswordViewModel
{
[Required]
[DataType(DataType.Password)]
[Display(Name = "Current password")]
public string CurrentPassword { get; set; }
[Required]
[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at most {1} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "New password")]
public string NewPassword { get; set; }
[DataType(DataType.Password)]
[Display(Name = "Confirm new password")]
[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
public string ConfirmPassword { get; set; }
}
}
......@@ -16,11 +16,11 @@ namespace WebPresentation.ViewModels
[Required]
[MinLength(5)]
public String StateName { get; set; }
[Display(Name = "State Name")]
[Display(Name = "State Description")]
[Required]
public String StateDescription { get; set; }
[Display(Name = "State Name")]
[Display(Name = "Prescription Time")]
[Required]
public DateTime PrescriptionTime { get; set; }
public ICollection<MedicineViewModel> Medicines { get; set; }
......
using System;
using System.ComponentModel.DataAnnotations;
namespace WebPresentation.ViewModels
{
public class CategoryViewModel : BaseViewModel
{
[Display(Name = "Category Name")]
public String Name { get; set; }
}
}
\ No newline at end of file
using System;
using System.ComponentModel.DataAnnotations;
namespace WebPresentation.ViewModels
{
public class MedicineTypeViewModel : BaseViewModel
{
[Display(Name = "Medicine Type ")]
public String TypeName { get; set; }
}
}
\ No newline at end of file
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WebPresentation.ViewModels
{
public class MedicineViewModel : BaseViewModel , IImageForm
{
[Display(Name ="Trade Name ")]
public String TradeName { get; set; }
[Display(Name = "Scintific Name ")]
public String ScintificName { get; set; }
[Display(Name = "Manufacture Name ")]
public String ManufactureName { get; set; }
[Display(Name = "Side Effect")]
public String SideEffect { get; set; }
public String Description { get; set; }
public int Price { get; set; }
......
......@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -14,6 +15,7 @@ namespace WebPresentation.ViewModels
public String UserId { get; set; }
public User User { get; set; }
[Display(Name = "Your BIO ")]
public String BIO { get; set; }
public ICollection<MedicalStateViewModel> MedicalStates { get; set; }
......
@model WebPresentation.ViewModels.ChangePasswordViewModel
<section class="page-section py-5">
<form asp-action="ChangePassword" method="post">
<div class="form-group">
<label asp-for="CurrentPassword"></label>
<input asp-for="CurrentPassword" class="form-control" />
<span asp-validation-for="CurrentPassword" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="NewPassword"></label>
<input asp-for="NewPassword" class="form-control" />
<span asp-validation-for="NewPassword" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ConfirmPassword"></label>
<input asp-for="ConfirmPassword" class="form-control" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
<button type="submit" class="btn btn-primary">Change Password</button>
</form>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
......@@ -83,7 +83,7 @@
<div class="form-group row mb-4">
<div data-mdb-input-init class="form-outline col">
<div data-mdb-input-init class="col">
<input type="file" asp-for="@Model.ImageFile" class="form-control form-control-lg" />
<label class="form-label" asp-for="@Model.ImageFile">Image File</label>
</div>
......
......@@ -6,7 +6,7 @@
}
<section class="page-section">
<div class="container ">
<div class="container py-5">
<div class="row justify-content-center">
<div class="">
<div class="card shadow-sm">
......
......@@ -15,7 +15,7 @@
ViewData["userName"] = Model.User.FirstName + " " + Model.User.LastName;
ViewBag.Avatar = Model.User.Avatar;
ViewData["Controller"] = "Home";
ViewData["Controller"] = "MedicalState";
ViewBag.owner = Model;
var DummyModel = new MedicalState { StateName="state name" , StateDescription="Description" , PrescriptionTime=DateTime.Now};
......@@ -61,9 +61,8 @@
<div class="icon"><i class="fas fa-heartbeat"></i></div>
<h4> New Medical State</h4>
<p>Click on the Create Button to Create a new Medical State</p>
<a asp-controller="Medicalstate" asp-action="Create" class="btn btn-primary">
Create
</a>
<button class="btn btn-primary ml-2 btn-create">Create </button>
</div>
</div>
......@@ -144,6 +143,7 @@
<h2 class=" text-center text-uppercase text-secondary mb-0">For Account Details : </h2><br />
<a class="btn btn-secondary" asp-action="Details" asp-controller="Home">Detail Your profile</a>
<a class="btn btn-primary" asp-action="Edit" asp-controller="Home">Edit Your profile</a>
<a class="btn btn-primary" asp-action="ChangePassword" asp-controller="Access">Changeyour password </a>
<!-- Icon Divider -->
......@@ -152,26 +152,26 @@
</section>
<!-- Contact Section -->
<section class="page-section" id="Create">
<div class="container">
<!--<section class="page-section" id="Create">
<div class="container">-->
<!-- Contact Section Heading -->
<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Create New Medical State</h2>
<!--<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Create New Medical State</h2>-->
<!-- Icon Divider -->
<div class="divider-custom">
<!--<div class="divider-custom">
<div class="divider-custom-line"></div>
<div class="divider-custom-icon">
<i class="fas fa-star"></i>
</div>
<div class="divider-custom-line"></div>
</div>
</div>-->
<!-- Contact Section Form -->
<div class="row">
<div class="col-lg-8 mx-auto">
<!--<div class="row">
<div class="col-lg-8 mx-auto">-->
<!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->
<form name="sentMessage" id="contactForm" novalidate="novalidate"
<!--<form name="sentMessage" id="contactForm" novalidate="novalidate"
method="post" asp-controller="MedicalState" asp-action="Create">
<div class="control-group">
<div class="form-group floating-label-form-group controls mb-0 pb-2">
......@@ -204,7 +204,7 @@
</div>
</div>
</section>
</section>-->
<!-- Modals -->
@foreach (var item in Model.MedicalStates)
......
......@@ -2,17 +2,24 @@
@{
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
ViewData["Controller"] = "Ingredient";
}
<section class="page-section" style="background-color: #f4f5f7;">
<div class="modal-header">
<h5 class="modal-title" id="modalEditLabel">Create Ingredient</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="card shadow-lg p-3 mb-5 bg-white rounded">
<div class="card-body">
<h1 class="card-title display-4 mb-4 text-center">Create New Ingredient</h1>
<div class="col ">
<div class=" shadow-lg p-3 mb-5 bg-white rounded">
<div class="">
<hr />
<form asp-action="Create" method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
......@@ -36,13 +43,13 @@
</div>
</div>
<div class="text-center">
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</section>
@section Scripts {
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
}
......@@ -32,7 +32,8 @@
<div class="col">
<h2 class="mb-4 animate__animated animate__fadeIn">Ingredients List</h2>
<p class="animate__animated animate__fadeIn">
<a asp-action="Create" class="btn btn-primary animate__animated animate__zoomIn">Create New</a>
<button class="btn btn-success ml-2 btn-create">Create New </button>
</p>
<div class="table-responsive animate__animated animate__fadeIn">
<table id="datatablesSimple" class="table table-striped table-bordered">
......
......@@ -7,12 +7,19 @@
}
<section class="page-section" style="background-color: #f4f5f7;">
<div class="modal-header">
<h5 class="modal-title" id="modalEditLabel">Create Medical Case</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container py-5 h-100">
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-md-8 col-lg-6 mb-4 mb-lg-0">
<div class="col-12 ">
<div class="card shadow-sm" style="border-radius: .5rem;">
<div class="card-header text-center bg-primary text-white" style="border-top-left-radius: .5rem; border-top-right-radius: .5rem;">
<h4>Create Medical State</h4>
......@@ -36,20 +43,19 @@
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-block">Create</button>
<button type="submit" class="btn btn-create btn-primary btn-block">Create</button>
</div>
</form>
</div>
<div class="card-footer text-center">
<a asp-action="Index" class="btn btn-link">Back to List</a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</section>
@section Scripts {
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
}
......@@ -4,18 +4,19 @@
ViewData["Title"] = "Medical Case Details ";
ViewData["Controller"] = "MedicalState";
if (Model.Medicines is null)
Model.Medicines = new List<MedicineViewModel>();
var a = 0;
}
<section id="toast-container" class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="container py-2 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-lg-10 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="row g-0">
<div class="col-12 gradient-custom text-center text-black p-4"
<div class="col-4 gradient-custom text-center text-black p-4"
style="border-top-left-radius: .5rem; border-top-right-radius: .5rem;">
<div class=" icon-box mb-3">
<div class="icon" style="color: #5e54b3;">
......@@ -28,22 +29,28 @@
<button class="m-1 btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
</div>
<div class="col-12">
<div class="col-8">
<div class="card-body p-4">
<h5>Information:</h5>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6 class="">Description</h6>
<p class="text-muted">@Model.StateDescription</p>
<div class="col-12 mb-3">
<h6 class="">
Description :
<span class="text-muted">@Model.StateDescription</span>
</h6>
</div>
<div class="col-4 mb-3">
<h6>Medicines Count: @Model.Medicines.Count()</h6>
<div class="col-12 mb-3">
<h6>Medicines Count:<span id="medCount"> @Model.Medicines.Count()</span></h6>
</div>
</div>
<h5>Medicines:</h5>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<hr />
</div>
</div>
<div class="col-12 p-4">
<h5>Your Medicines in this case:</h5>
<hr class="mt-0 ">
<div class="row p-4">
<table id="Ingredients_" class="table table-bordered table-hover">
<thead class="thead-light">
<tr>
......@@ -57,6 +64,19 @@
</tr>
</thead>
<tbody id="cc">
@if (Model.Medicines.Count == 0)
{
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
@foreach (var ing in Model.Medicines)
{
<tr>
......@@ -75,29 +95,30 @@
</tbody>
</table>
</div>
<hr />
<div class="row pt-1">
<div class="col-12 mb-3">
<div class="col mb-3">
<h6>Go To List</h6>
<a asp-action="Index" class="btn btn-secondary">Go Back</a>
</div>
</div>
<hr />
<div class="row pt-1">
<div class="col-12">
<div class="col mb-3">
<h6>Add New Medicine To your Medical Case </h6>
<button onclick="fetchMedicines()" class="btn btn-primary">Get Medicines</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-lg-10 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
......@@ -135,8 +156,9 @@
</div>
</div>
</div>
</div></div>
@section Scripts {
</div>
</div>
@section Scripts {
<script>
async function fetchMedicines() {
try {
......@@ -172,9 +194,11 @@
let tableBody = document.querySelector('#' + tableName);
let medCount = document.querySelector('#medCount');
medCount.innerHTML = medicines.length;
tableBody.innerHTML = `
<table id="${tableName}" class="table">
<thead>
<table id="${tableName}" class="table table-bordered table-hover">
<thead class="thead-light">
<tr class="mb-3">
<td>ID</td>
<td>tradeName</td>
......@@ -187,16 +211,31 @@
</td>
</tr>
</thead ><tbody id="${tableName +"b"}"> </tbody></table>`;
</thead >
<tbody id="${tableName + "b"}">
</tbody>
</table>`;
tableBody = document.querySelector("#" + tableName + "b");
let i = 1
if (medicines.length == 0) {
tableBody.innerHTML =`
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>`
}
medicines.forEach(medicine => {
let row = document.createElement('tr');
row.classList = "mb-3"
row.innerHTML = `
<td>${medicine.id}</td>
<td>${i}</td>
<td>${medicine.tradeName}</td>
<td>${medicine.description}</td>
<td>${medicine.price}</td>
......@@ -207,21 +246,17 @@
row.innerHTML +=
(tableName == "Ingredients_") ?
`
<td>
<button class="btn btn-primary" onclick="DetailMedicine( ${medicine.id})">Details</button>
<button class="btn btn-danger" onclick='DeleteConfirm("Delete Confirm", "Are you sure you want to delete ${medicine.name} From this medical Case" ,${medicine.id})'>Delete</button>
</td>
` :
`<td>
<button class="btn btn-primary" onclick="addMedicine( ${medicine.id})">Add</button>
<button class="btn btn-primary" onclick="DetailMedicine( ${medicine.id})">Details</button>
</td>
`
<button class="btn btn-sm p-1 btn-danger btn-sm" onclick='DeleteConfirm("Delete Confirm", "Are you sure you want to delete ${medicine.name} From this medical Case" ,${medicine.id})'>Delete</button>
<button class="btn btn-sm p-1 btn-info btn-sm" onclick="DetailMedicine( ${medicine.id})">Details</button>
</td>`
:
`<td>
<button class="btn btn-sm p-1 btn-primary" onclick="addMedicine( ${medicine.id})">Add</button>
<button class="btn btn-sm p-1 btn-primary" onclick="DetailMedicine( ${medicine.id})">Details</button>
</td>`
i+=1;
tableBody.appendChild(row);
});
}
......@@ -276,7 +311,7 @@
showToast('Failed to add medicine', 'Error');
}
}
async function ReomveMedicine(med) {
async function RemoveMedicine(med) {
let id =@Model.Id;
debugger;
try {
......@@ -295,7 +330,7 @@
updateMedicines();
showToast('Medicine Reomved successfully', 'Success');
showToast(result.result, result.message);
} else {
console.error('Error:', response.statusText);
showToast('Failed to remove medicine', 'Error');
......@@ -460,4 +495,4 @@
}
</script>
}
}
......@@ -2,7 +2,7 @@
@{
ViewData["Title"] = "Edit";
ViewData["Controller"] = "MedicalState";
}
......@@ -17,9 +17,9 @@
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col p-2">
<div class="card mb-3 shadow-sm" style="border-radius: .5rem;">
<div class=" mb-3 shadow-sm" style="border-radius: .5rem;">
<div class="card-body">
<div class="">
<form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group mb-3">
......
......@@ -8,7 +8,9 @@
<div class="container mt-5">
<div class="row mb-4">
<div class="col text-center">
<h3>Create New <a asp-action="Create" asp-controller="MedicalState" class="btn btn-success ml-2">Create</a></h3>
do you have a new Medical case ?
<button class="btn btn-success ml-2 btn-create" >Create</button>
</div>
</div>
</div>
......@@ -30,11 +32,11 @@
@foreach (var item in Model)
{
<div class="container py-5 h-100">
<div class="container p-4 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="p-4 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;">
......@@ -44,28 +46,23 @@
</div>
<h5>@item.StateName</h5>
<p>Prescriped At : @item.PrescriptionTime</p>
<button class="btn btn-warning btn-edit" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@item.Id">Delete</button>
<a asp-action="Index">
<i class="far fa-backward">
<button class="btn btn-sm btn-warning btn-edit" data-id="@item.Id">Edit</button>
<button class="btn btn-sm btn-danger btn-delete" data-id="@item.Id">Delete</button>
</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 class="col-12 mb-3">
<h6>
Description :
<span class="text-muted">@item.StateDescription</span>
</h6>
</div>
<div class="col-6 mb-3">
<div class="col-12 mb-3">
<h6>Medicine count :@item.Medicines.Count()</h6>
</div>
</div>
......
......@@ -3,16 +3,24 @@
@{
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
ViewData["Controller"] = "Medicine";
// Layout = "_AdminLayout";
}
<div class="container py-5">
<div class="modal-header">
<h5 class="modal-title" id="modalEditLabel">Create New Medicine</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card shadow-sm">
<div class="card-body">
<h1 class="card-title mb-4">Create New Medicine</h1>
<div class="col">
<div class=" shadow-sm">
<div class="">
<form asp-action="Create" method="post" enctype="multipart/form-data">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
......@@ -76,15 +84,15 @@
<div class="form-group">
<button type="submit" class="btn btn-primary">Create</button>
<a asp-action="Index" class="btn btn-secondary ms-2">Back to List</a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@section Scripts {
</div>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
}
......@@ -13,7 +13,7 @@
<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"
<div class="col-4 gradient-custom text-center text-black"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<img src="~/img/@Model.ImageName"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
......@@ -22,26 +22,35 @@
<button class="btn btn-warning btn-edit" data-id="@Model.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
</div>
<div class="col-md-8">
<div class="col-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">@Model.Description</p>
<div class="col mb-3">
<h6>
Description : <span class="text-muted">@Model.Description</span>
</h6>
</div>
<div class="col-6 mb-3">
<h6>Type:@Model.MedicineType?.TypeName</h6>
<p class="text-muted">Dosage : @Model.Dosage</p>
<p class="text-muted">Price : @Model.Price</p>
<div class="col-12 row mb-3">
<h6 class="col">
Type : <span class="text-muted">@Model.MedicineType?.TypeName</span>
</h6>
<h6 class="col text-muted">Dosage : <span class="text-muted">@Model.Dosage</span></h6>
<h6 class="col text-muted">Price : <span class="text-muted">@Model.Price</span></h6>
</div>
</div>
</div>
</div>
<div class="col-12 p-3">
<h6>Ingredients : </h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<table id="Ingredients_" class="table table-bordered">
<thead>
<div class="row pt-1 p-3">
<table id="Ingredients_" class=" p-4 table table-bordered">
<thead class="thead-light">
<tr>
<td>#</td>
<td>Name</td>
......@@ -51,6 +60,17 @@
</tr>
</thead>
<tbody>
@if (Model.MedicineIngredients.Count == 0)
{
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
@foreach (var ing in Model.MedicineIngredients)
{
<tr class=" mb-3">
......@@ -67,14 +87,11 @@
</tbody>
</table>
</div>
<hr />
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to List</a>
</div>
<div class="col-6 mb-3">
<a asp-action="AddIngredints" asp-controller="Medicine" asp-route-id="@Model.Id">Add Ingredients </a>
</div>
<div class="col-6 mb-3">
......@@ -84,7 +101,7 @@
</div>
</div>
</div>
</div>
</div>
......@@ -131,10 +148,10 @@
let id =@Model.Id;
debugger;
try {
let response = await fetch(`/Medicine/GetMedcineIngredient/${id}`); // Adjust the endpoint as needed
let response = await fetch(`/Medicine/GetMedicineIngredient/${id}`); // Adjust the endpoint as needed
if (response.ok) {
let medicines = await response.json();
medicines = medicines.medicineIngredients
medicines = medicines.result
populateTable(medicines, 'Ingredients_');
} else {
console.error('Error:', response.statusText);
......@@ -148,49 +165,70 @@
let tableBody = document.querySelector('#' + tableName);
tableBody.innerHTML = `
<table class="table">
<thead>
<thead class="thead-light">
<tr>
<td>Name</td>
<td>Description</td>
${tableName=="t" ?" ":"<td>Ratio</td>"}
<td>Manage</td>
<td>Description</td>${
tableName=="t" ?" ":"<td>Ratio</td>"
}<td>Manage</td>
</tr>
</thead ><tbody id="${tableName + "b"}" > </tbody></table>`;
</thead >
<tbody id="${tableName + "b"}" >
</tbody>
</table>`;
tableBody = document.querySelector("#" + tableName + "b");
if (medicines.length == 0 && tableName != "t") {
tableBody.innerHTML =`
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
`
}
medicines.forEach(medicine => {
let row = document.createElement('tr');
row.classList = "mb-3"
if (tableName == "t") {
row.innerHTML = `
<td>${medicine.name}</td>
<td>${medicine.description}</td>
${tableName == "t" ? " " : medicine.ratio}
`;
row.innerHTML +=
(tableName != "t") ?
`
<td>
<button
class="btn btn-primary" onclick="addIngredient( ${medicine.id})" data-dismiss="modal" aria-label="Close">
Add
</button>
</td> `
<button class="btn btn-danger" ondblclick='DeleteConfirm("Delete Confirm", "Are you sure you want to delete ${medicine.name}From this medicine", "ReomveIngredient",${medicine.ingredient.id})'>Delete</button>
</td>
` :
`<td>
<button class="btn btn-primary" onclick="addIngredient( ${medicine.id})" data-dismiss="modal" aria-label="Close">Add</button>
} else {
</td>
`
let m = ` "Are you sure you want to delete ${medicine.ingredient.name}From this medicine"`;
row.innerHTML = `
<td>${medicine.ingredient.name}</td>
<td>${medicine.ingredient.description}</td>
${ medicine.ratio}
<td>
<button
class="btn btn-danger" onclick='DeleteConfirm("Delete Confirm",${m}, "ReomveIngredient", ${medicine.ingredient.id})'>
Delete
</button >
</td >`;
}
tableBody.appendChild(row);
});
tableBody.innerHTML += ``;
}
function addIngredient(med) {
......@@ -201,7 +239,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header border-bottom-0">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<button type="button" class="close input" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
......@@ -246,7 +284,7 @@
if (response.ok) {
let result = await response.json();
updateIngredients();
showToast('Medicine added successfully', 'Success');
showToast(result.message, result.result);
} else {
console.error('Error:', response.statusText);
showToast('Failed to add medicine', 'Error');
......@@ -296,10 +334,10 @@
if (response.ok) {
let result = await response.json();
showToast(result.message, result.result);
updateIngredients();
showToast('Medicine Reomved successfully', 'Success');
} else {
console.error('Error:', response.statusText);
showToast('Failed to remove medicine', 'Error');
......
......@@ -30,7 +30,7 @@
<div class="col">
<h2 class="mb-4 animate__animated animate__fadeIn">Medicines Details</h2>
<p class="animate__animated animate__fadeIn">
<a asp-action="Create" class="btn btn-primary animate__animated animate__zoomIn">Create New</a>
<button class="btn btn-success ml-2 btn-create">Create New </button>
</p>
<div class="table-responsive">
<table class="table table-striped table-bordered" id="datatablesSimple">
......@@ -57,9 +57,9 @@
<td>@Html.DisplayFor(modelItem => item.Price)</td>
<td>
<div class="d-flex">
<button class="btn btn-warning btn-edit m-1" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete m-1 " data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-controller="Medicine" asp-route-id="@item.Id" class="m-1 btn btn-danger" title="Details">Details</a>
<button class="btn btn-sm btn-warning btn-edit m-1" data-id="@item.Id">Edit</button>
<button class="btn btn-sm btn-danger btn-delete m-1 " data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-controller="Medicine" asp-route-id="@item.Id" class="m-1 btn btn-sm btn-info" title="Details">Details</a>
</div>
</td>
</tr>
......
......@@ -12,10 +12,10 @@
<meta name="description" content="" />
<meta name="author" content="" />
<title>DashBoard - @ViewData["Title"]</title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css" rel="stylesheet" />
@*<link href="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css" rel="stylesheet" />*@
<link href="/css/styles.css" rel="stylesheet" />
<link href="/favicon.png" rel="icon">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
@* <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>*@
<!-- Custom fonts for this theme -->
<link href="~/fonts/css/all.min.css" rel="stylesheet" type="text/css">
......@@ -73,7 +73,7 @@
<!-- Patient Managment -->
<a class="nav-link collapsed"
asp-action="Inedx" asp-controller="Patients"
asp-action="Index" asp-controller="Patients"
data-bs-toggle="collapse" data-bs-target="#collapseLayouts" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-columns"></i></div>
Patients Managment
......@@ -81,13 +81,13 @@
</a>
<div class="collapse" id="collapseLayouts" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" asp-controller="Patients" asp-action="Create">Add Patient </a>
<a class="nav-link" asp-controller="Patients" asp-action="Index">ALL Patients </a>
</nav>
</div>
<!-- Ingredients Managment -->
<a class="nav-link collapsed" asp-action="Index" asp-controller="Ingredients" data-bs-toggle="collapse" data-bs-target="#ing" aria-expanded="false" aria-controls="collapseLayouts">
<a class="nav-link collapsed" asp-action="Index" asp-controller="Ingredient" 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>
......@@ -148,7 +148,10 @@
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="/js/scripts.js"></script>
<script src="/lib/jquery/dist//jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
@RenderSection("Scripts", required: false);
......@@ -169,6 +172,13 @@
</div>
</div>
</div>
<div class="modal fade" id="modal-create" tabindex="-1" role="dialog" aria-labelledby="modalDeleteLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Content loaded via AJAX -->
</div>
</div>
</div>
<script>
$(document).ready(function () {
// Load the Edit form in the modal
......@@ -178,16 +188,69 @@
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id);
$('#modal-edit').modal('show');
});
$(document).on('submit', '#modal-edit form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-edit').find('.modal-content').html(response);
}
}
});
});
$('.btn-create').on('click', function () {
var controller = `@ViewData["Controller"]`;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
$('.btn-delete').on('click', function () {
var id = $(this).data('id');
var controller = `@ViewData["Controller"]`;
$('#modal-delete').find('.modal-content').load(`/${controller}/Delete/` + id);
$('#modal-delete').modal('show');
});
$(document).on('submit', '#modal-create form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-create').find('.modal-content').html(response);
}
}
});
});
});
</script>
<!-- Bootstrap core JavaScript -->
<script src="~/js/jquery.min.js"></script>
<script src="~/js/bootstrap.bundle.min.js"></script>
......@@ -195,6 +258,7 @@
<!-- Plugin JavaScript -->
<script src="~/js/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
@*<script src="~/js/freelancerAd.min.js"></script>*@
<!-- Custom scripts for this template -->
......
......@@ -45,7 +45,7 @@
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Index" asp-controller="MedicalState">Medicines</a>
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Index" asp-controller="MedicalState">Medicines Cases</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" asp-action="Index" asp-controller="Home">Home</a>
......@@ -140,6 +140,13 @@
</div>
</div>
</div>
<div class="modal fade" id="modal-create" tabindex="-1" role="dialog" aria-labelledby="modalDeleteLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Content loaded via AJAX -->
</div>
</div>
</div>
<div class="modal fade" id="modal-edit" tabindex="-1" role="dialog" aria-labelledby="modalCreateLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
......@@ -153,9 +160,64 @@
$('.btn-edit').on('click', function () {
var id = $(this).data('id');
var controller = `@ViewData["Controller"]`;
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id);
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id, function () {
$('#modal-edit').modal('show');
});
});
// Function to handle form submission
$(document).on('submit', '#modal-edit form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-edit').find('.modal-content').html(response);
}
}
});
}); $(document).on('submit', '#modal-create form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-create').find('.modal-content').html(response);
}
}
});
});
$('.btn-create').on('click', function () {
var controller = `@ViewData["Controller"]`;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
$('.btn-delete').on('click', function () {
var id = $(this).data('id');
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "05e9bc50fbc24f183d20acf8e054ba93f7406c36"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d812fb54b30e1724754a4f17b9f590723f87f66a"
// <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")]
......@@ -53,33 +53,22 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"05e9bc50fbc24f183d20acf8e054ba93f7406c36", @"/Views/Home/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d812fb54b30e1724754a4f17b9f590723f87f66a", @"/Views/Home/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<PatientViewModel>
{
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("asp-controller", "Medicalstate", 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("btn btn-primary"), 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("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_5 = 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_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-secondary"), 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", "Details", 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-controller", "Home", 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("asp-action", "Edit", 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("form-control"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-validation-required-message", new global::Microsoft.AspNetCore.Html.HtmlString("Please enter your name."), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_12 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("Phone Number"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_13 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("required", new global::Microsoft.AspNetCore.Html.HtmlString("required"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_14 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-validation-required-message", new global::Microsoft.AspNetCore.Html.HtmlString("Please enter your phone number."), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_15 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("message"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_16 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rows", new global::Microsoft.AspNetCore.Html.HtmlString("5"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_17 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-validation-required-message", new global::Microsoft.AspNetCore.Html.HtmlString("Please enter a message."), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_18 = 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_19 = 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_20 = 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_21 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("method", "post", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_22 = 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_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("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-secondary"), 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("asp-action", "Details", 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("asp-controller", "Home", 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("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_8 = 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_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "ChangePassword", 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("asp-controller", "Access", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("role", new global::Microsoft.AspNetCore.Html.HtmlString("button"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -102,11 +91,6 @@ using Microsoft.AspNetCore.Identity;
}
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;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
......@@ -122,7 +106,7 @@ using Microsoft.AspNetCore.Identity;
ViewData["userName"] = Model.User.FirstName + " " + Model.User.LastName;
ViewBag.Avatar = Model.User.Avatar;
ViewData["Controller"] = "Home";
ViewData["Controller"] = "MedicalState";
ViewBag.owner = Model;
var DummyModel = new MedicalState { StateName="state name" , StateDescription="Description" , PrescriptionTime=DateTime.Now};
......@@ -131,18 +115,18 @@ using Microsoft.AspNetCore.Identity;
#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=\"", 937, "\"", 966, 2);
WriteAttributeValue("", 943, "/img/", 943, 5, true);
BeginWriteAttribute("src", " src=\"", 945, "\"", 974, 2);
WriteAttributeValue("", 951, "/img/", 951, 5, true);
#nullable restore
#line 29 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
WriteAttributeValue("", 956, Model.User.Avatar, 956, 18, false);
#line default
#line hidden
#nullable disable
EndWriteAttribute();
WriteLiteral(" style=\"border-radius:50%\"");
BeginWriteAttribute("alt", " alt=\"", 993, "\"", 999, 0);
BeginWriteAttribute("alt", " alt=\"", 1001, "\"", 1007, 0);
EndWriteAttribute();
WriteLiteral(">\r\n\r\n <!-- Masthead Heading -->\r\n <h1 class=\"masthead-heading text-uppercase mb-0\">");
#nullable restore
......@@ -173,7 +157,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#line hidden
#nullable disable
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, "05e9bc50fbc24f183d20acf8e054ba93f7406c3615346", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d812fb54b30e1724754a4f17b9f590723f87f66a10699", async() => {
WriteLiteral("Create");
}
);
......@@ -200,28 +184,14 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
<div class=""icon""><i class=""fas fa-heartbeat""></i></div>
<h4> New Medical State</h4>
<p>Click on the Create Button to Create a new Medical State</p>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3617130", async() => {
WriteLiteral("\r\n Create\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.Controller = (string)__tagHelperAttribute_2.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n </div>\r\n");
<button class=""btn btn-primary ml-2 btn-create"">Create </button>
</div>
</div>
");
#nullable restore
#line 70 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
{
......@@ -235,7 +205,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
<div class=""icon""><i class=""fas fa-heartbeat""></i></div>
<h4>");
#nullable restore
#line 77 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
......@@ -243,7 +213,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("</h4>\r\n \r\n <p class=\"text-start\">Diagonistic : ");
#nullable restore
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 78 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
......@@ -251,7 +221,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("<br /> Prescriped at : ");
#nullable restore
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 78 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.PrescriptionTime);
#line default
......@@ -259,7 +229,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral(" </p>\r\n <a data-toggle=\"modal\" data-target=\"#item-");
#nullable restore
#line 80 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
......@@ -267,7 +237,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("\" class=\"btn btn-primary\" style=\"color:white!important\">\r\n Details\r\n </a>\r\n </div>\r\n\r\n </div>\r\n");
#nullable restore
#line 86 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 85 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
#line default
......@@ -286,7 +256,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
<!--<div class=""row d-flex flex-wrap justify-content-sm-center"">
");
#nullable restore
#line 98 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 97 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
if (Model.MedicalStates.Count() == 0)
{
......@@ -294,13 +264,13 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#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, "05e9bc50fbc24f183d20acf8e054ba93f7406c3621540", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d812fb54b30e1724754a4f17b9f590723f87f66a15461", 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_4);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -310,7 +280,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
#nullable restore
#line 102 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 101 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
else
......@@ -319,7 +289,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#line hidden
#nullable disable
#nullable restore
#line 104 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 103 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
{
......@@ -328,11 +298,11 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#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=\"", 4167, "\"", 4174, 0);
BeginWriteAttribute("href", " href=\"", 4107, "\"", 4114, 0);
EndWriteAttribute();
WriteLiteral(">");
#nullable restore
#line 110 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 109 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
......@@ -340,7 +310,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("</a></h4>\r\n <p>");
#nullable restore
#line 111 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 110 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
......@@ -348,7 +318,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("</p>\r\n <a href=\"#\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#item-");
#nullable restore
#line 112 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 111 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
......@@ -366,7 +336,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
<div class=""card-body"">
<h5 class=""card-title"">");
#nullable restore
#line 122 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 121 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateName);
#line default
......@@ -374,7 +344,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("</h5>\r\n <p class=\"card-text\">\r\n ");
#nullable restore
#line 124 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 123 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.StateDescription);
#line default
......@@ -382,7 +352,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("\r\n <br />\r\n Date : ");
#nullable restore
#line 126 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 125 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.PrescriptionTime);
#line default
......@@ -390,7 +360,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral(" <br />\r\n\r\n Medicines : ");
#nullable restore
#line 128 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 127 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Medicines.Count());
#line default
......@@ -398,7 +368,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#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 131 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 130 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
Write(item.Id);
#line default
......@@ -406,7 +376,7 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
#nullable disable
WriteLiteral("\">go to descriptiuon </a>\r\n </div>\r\n </div>\r\n </div>\r\n");
#nullable restore
#line 135 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
#line 134 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
}
#line default
......@@ -422,17 +392,17 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
<!-- Portfolio Section Heading -->
<h2 class="" text-center text-uppercase text-secondary mb-0"">For Account Details : </h2><br />
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3627482", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d812fb54b30e1724754a4f17b9f590723f87f66a21403", async() => {
WriteLiteral("Detail Your profile");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_6.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -441,17 +411,36 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3628948", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d812fb54b30e1724754a4f17b9f590723f87f66a22869", async() => {
WriteLiteral("Edit Your profile");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_6.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d812fb54b30e1724754a4f17b9f590723f87f66a24333", async() => {
WriteLiteral("Changeyour password ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_10.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -468,176 +457,91 @@ WriteAttributeValue("", 948, Model.User.Avatar, 948, 18, false);
</section>
<!-- Contact Section -->
<section class=""page-section"" id=""Create"">
<div class=""container"">
<!--<section class=""page-section"" id=""Create"">
<div class=""container"">-->
<!-- Contact Section Heading -->
<h2 class=""page-section-heading text-center text-uppercase text-secondary mb-0"">Create New Medical State</h2>
<!--<h2 class=""page-section-heading text-center text-uppercase text-secondary mb-0"">Create New Medical State</h2>-->
<!-- Icon Divider -->
<div class=""divider-custom"">
<!--<div class=""divider-custom"">
<div class=""divider-custom-line""></div>
<div class=""divider-custom-icon"">
<i class=""fas fa-star""></i>
</div>
<div class=""divider-custom-line""></div>
</div>
</div>-->
<!-- Contact Section Form -->
<div class=""row"">
<div class=""col-lg-8 mx-auto"">
<!--<div class=""row"">
<div class=""col-lg-8 mx-auto"">-->
<!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->
<!--<form name=""sentMessage"" id=""contactForm"" novalidate=""novalidate""
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3631337", async() => {
WriteLiteral("\r\n <div class=\"control-group\">\r\n <div class=\"form-group floating-label-form-group controls mb-0 pb-2\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3631776", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
WriteLiteral(@" method=""post"" asp-controller=""MedicalState"" asp-action=""Create"">
<div class=""control-group"">
<div class=""form-group floating-label-form-group controls mb-0 pb-2"">
<label asp-for=""");
#nullable restore
#line 178 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.StateName);
Write(DummyModel.StateName);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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 ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "05e9bc50fbc24f183d20acf8e054ba93f7406c3633292", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
WriteLiteral("\"></label>\r\n <input class=\"form-control\" asp-for=\"");
#nullable restore
#line 179 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.StateName);
Write(DummyModel.StateName);
#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_11);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
WriteLiteral(@""" data-validation-required-message=""Please enter your name."">
<p class=""help-block text-danger""></p>
</div>
</div>
<div class=""control-group"">
<div class=""form-group floating-label-form-group controls mb-0 pb-2"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3635256", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
<label asp-for=""");
#nullable restore
#line 185 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.PrescriptionTime);
Write(DummyModel.PrescriptionTime);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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 ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "05e9bc50fbc24f183d20acf8e054ba93f7406c3636779", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
WriteLiteral("\" ></label>\r\n <input class=\"form-control\" asp-for=\"");
#nullable restore
#line 186 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.PrescriptionTime);
Write(DummyModel.PrescriptionTime);
#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_12);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_14);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
WriteLiteral(@""" placeholder=""Phone Number"" required=""required"" data-validation-required-message=""Please enter your phone number."">
<p class=""help-block text-danger""></p>
</div>
</div>
<div class=""control-group"">
<div class=""form-group floating-label-form-group controls mb-0 pb-2"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3638926", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
<label asp-for=""");
#nullable restore
#line 192 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.StateDescription);
Write(DummyModel.StateDescription);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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 ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3640449", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_16);
WriteLiteral("\"></label>\r\n <textarea class=\"form-control\" id=\"message\" rows=\"5\" asp-for=\"");
#nullable restore
#line 193 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => DummyModel.StateDescription);
Write(DummyModel.StateDescription);
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_17);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
WriteLiteral(@"""data-validation-required-message=""Please enter a message.""></textarea>
<p class=""help-block text-danger""></p>
</div>
</div>
......@@ -646,30 +550,15 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionPro
<div class=""form-group"">
<button type=""submit"" class=""btn btn-primary btn-xl"" id=""sendMessageButton"">Create</button>
</div>
");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
__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_18);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_19);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_20);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.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("\r\n </div>\r\n </div>\r\n\r\n </div>\r\n</section>\r\n\r\n<!-- Modals -->\r\n");
</form>
</div>
</div>
</div>
</section>-->
<!-- Modals -->
");
#nullable restore
#line 210 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
foreach (var item in Model.MedicalStates)
......@@ -679,22 +568,22 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionPro
#line hidden
#nullable disable
WriteLiteral(" <!-- Portfolio Modal -->\r\n <div class=\"portfolio-modal modal fade\"");
BeginWriteAttribute("id", " id=\"", 9273, "\"", 9293, 2);
WriteAttributeValue("", 9278, "item-", 9278, 5, true);
BeginWriteAttribute("id", " id=\"", 9361, "\"", 9381, 2);
WriteAttributeValue("", 9366, "item-", 9366, 5, true);
#nullable restore
#line 213 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 9283, item.Id, 9283, 10, false);
WriteAttributeValue("", 9371, item.Id, 9371, 10, false);
#line default
#line hidden
#nullable disable
EndWriteAttribute();
WriteLiteral(" tabindex=\"-1\" role=\"dialog\"");
BeginWriteAttribute("aria-labelledby", " aria-labelledby=\"", 9322, "\"", 9354, 2);
WriteAttributeValue("", 9340, "label-", 9340, 6, true);
BeginWriteAttribute("aria-labelledby", " aria-labelledby=\"", 9410, "\"", 9442, 2);
WriteAttributeValue("", 9428, "label-", 9428, 6, true);
#nullable restore
#line 213 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Home\Index.cshtml"
WriteAttributeValue("", 9346, item.Id, 9346, 8, false);
WriteAttributeValue("", 9434, item.Id, 9434, 8, false);
#line default
#line hidden
......@@ -762,16 +651,16 @@ WriteAttributeValue("", 9346, item.Id, 9346, 8, false);
#line hidden
#nullable disable
WriteLiteral("</p>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05e9bc50fbc24f183d20acf8e054ba93f7406c3648884", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d812fb54b30e1724754a4f17b9f590723f87f66a34706", 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_22);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7299a22d22088802c4cd83c36ceb2c5971c63e2e"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3c076b12d43b951c51065bf6ea9fb4b71426c7cb"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Create), @"mvc.1.0.view", @"/Views/Ingredient/Create.cshtml")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"7299a22d22088802c4cd83c36ceb2c5971c63e2e", @"/Views/Ingredient/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3c076b12d43b951c51065bf6ea9fb4b71426c7cb", @"/Views/Ingredient/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Create : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IngredientViewModel>
{
......@@ -56,8 +56,6 @@ using System;
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rows", new global::Microsoft.AspNetCore.Html.HtmlString("4"), 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", "Create", 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("method", "post", 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("asp-action", "Index", 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-secondary"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -85,7 +83,6 @@ using System;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper;
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()
{
......@@ -94,31 +91,39 @@ using System;
#line 3 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
ViewData["Controller"] = "Ingredient";
#line default
#line hidden
#nullable disable
WriteLiteral(@"
<section class=""page-section"" style=""background-color: #f4f5f7;"">
<div class=""modal-header"">
<h5 class=""modal-title"" id=""modalEditLabel"">Create Ingredient</h5>
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close"">
<span aria-hidden=""true"">&times;</span>
</button>
</div>
<div class=""modal-body"">
<div class=""container py-5"">
<div class=""row justify-content-center"">
<div class=""col-lg-8"">
<div class=""card shadow-lg p-3 mb-5 bg-white rounded"">
<div class=""card-body"">
<h1 class=""card-title display-4 mb-4 text-center"">Create New Ingredient</h1>
<hr />
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e7982", async() => {
<div class=""col "">
<div class="" shadow-lg p-3 mb-5 bg-white rounded"">
<div");
BeginWriteAttribute("class", " class=\"", 612, "\"", 620, 0);
EndWriteAttribute();
WriteLiteral(">\r\n <hr />\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb7450", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e8268", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb7736", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#nullable restore
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 25 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;
#line default
......@@ -134,14 +139,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSumma
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e10025", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb9493", async() => {
WriteLiteral("Name");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 21 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 28 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line default
......@@ -157,13 +162,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, "7299a22d22088802c4cd83c36ceb2c5971c63e2e11673", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb11140", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 22 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 29 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line default
......@@ -179,13 +184,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, "7299a22d22088802c4cd83c36ceb2c5971c63e2e13272", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb12739", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 23 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Name);
#line default
......@@ -201,14 +206,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e15047", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb14514", async() => {
WriteLiteral("Description");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 34 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -224,13 +229,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e16709", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb16176", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper);
#nullable restore
#line 28 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -247,13 +252,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionPro
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e18426", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb17893", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 29 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -292,33 +297,28 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"text-center\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7299a22d22088802c4cd83c36ceb2c5971c63e2e21832", 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_6.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
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>\r\n </div>\r\n</section>\r\n\r\n");
WriteLiteral(@"
</div>
</div>
<div class=""text-center"">
<button type=""button"" class=""btn btn-secondary"" data-dismiss=""modal"">Close</button>
</div>
</div>
</div>
</div>
</div>
");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 47 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
#line hidden
#nullable disable
WriteLiteral(" ");
}
);
}
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "304d1162eb4d7e51191e3d1ab9bba68d17cd70bf"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3302db48136fd4ef2e2cf1b555107dde6de5327d"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Index), @"mvc.1.0.view", @"/Views/Ingredient/Index.cshtml")]
......@@ -46,16 +46,14 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"304d1162eb4d7e51191e3d1ab9bba68d17cd70bf", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3302db48136fd4ef2e2cf1b555107dde6de5327d", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<IngredientViewModel>>
{
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = 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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-primary animate__animated animate__zoomIn"), 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", "Details", 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("m-1 btn btn-info text-info "), 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("title", new global::Microsoft.AspNetCore.Html.HtmlString("Details"), 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", "_ValidationScriptsPartial", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Details", 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("m-1 btn btn-info text-info "), 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("title", new global::Microsoft.AspNetCore.Html.HtmlString("Details"), 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("name", "_ValidationScriptsPartial", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -127,24 +125,8 @@ using System;
<div class=""col"">
<h2 class=""mb-4 animate__animated animate__fadeIn"">Ingredients List</h2>
<p class=""animate__animated animate__fadeIn"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "304d1162eb4d7e51191e3d1ab9bba68d17cd70bf7567", async() => {
WriteLiteral("Create New");
}
);
__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_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
<button class=""btn btn-success ml-2 btn-create"">Create New </button>
</p>
<div class=""table-responsive animate__animated animate__fadeIn"">
<table id=""datatablesSimple"" class=""table table-striped table-bordered"">
......@@ -152,14 +134,10 @@ using System;
<tr>
<th scope=""col"">Name</th>
<th scope=""col"">Description</th>
<th scope=""col"">Manage</th>
</tr>
</thead>
<tbody>
");
");
WriteLiteral(" <th scope=\"col\">Description</th>\r\n <th scope=\"col\">Manage</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
#nullable restore
#line 48 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 49 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
foreach (var item in Model)
{
......@@ -168,7 +146,7 @@ using System;
#nullable disable
WriteLiteral(" <tr class=\"animate__animated animate__fadeInUp\">\r\n\r\n <td>");
#nullable restore
#line 52 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 53 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Name));
#line default
......@@ -176,7 +154,7 @@ using System;
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 53 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Description));
#line default
......@@ -184,7 +162,7 @@ using System;
#nullable disable
WriteLiteral("</td>\r\n <td>\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-warning btn-edit m-1\" data-id=\"");
#nullable restore
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
Write(item.Id);
#line default
......@@ -192,28 +170,28 @@ using System;
#nullable disable
WriteLiteral("\">Edit</button>\r\n <button class=\"btn btn-danger btn-delete m-1\" data-id=\"");
#nullable restore
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
Write(item.Id);
#line default
#line hidden
#nullable disable
WriteLiteral("\">Delete</button>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "304d1162eb4d7e51191e3d1ab9bba68d17cd70bf11314", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3302db48136fd4ef2e2cf1b555107dde6de5327d9498", async() => {
WriteLiteral("Details");
}
);
__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.Action = (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 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 59 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
WriteLiteral(item.Id);
#line default
......@@ -222,8 +200,8 @@ using System;
__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);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -233,7 +211,7 @@ using System;
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n");
#nullable restore
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
#line 63 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml"
}
#line default
......@@ -257,13 +235,13 @@ using System;
");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "304d1162eb4d7e51191e3d1ab9bba68d17cd70bf14464", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3302db48136fd4ef2e2cf1b555107dde6de5327d12647", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9adc6a6658017632783aa7bb2ef9b9c32b03d7c8"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3808917f5d76c573867efae7a29b007606097b6e"
// <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")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9adc6a6658017632783aa7bb2ef9b9c32b03d7c8", @"/Views/Medicine/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3808917f5d76c573867efae7a29b007606097b6e", @"/Views/Medicine/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Create : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MedicineViewModel>
{
......@@ -54,11 +54,9 @@ using System;
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("control-label"), 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("form-control"), 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("rows", new global::Microsoft.AspNetCore.Html.HtmlString("4"), 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-secondary ms-2"), 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("asp-action", "Create", 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("method", "post", 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("enctype", new global::Microsoft.AspNetCore.Html.HtmlString("multipart/form-data"), 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", "Create", 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("method", "post", 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("enctype", new global::Microsoft.AspNetCore.Html.HtmlString("multipart/form-data"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -86,7 +84,6 @@ using System;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper;
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()
{
......@@ -96,30 +93,39 @@ using System;
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
ViewData["Controller"] = "Medicine";
// Layout = "_AdminLayout";
#line default
#line hidden
#nullable disable
WriteLiteral(@"
<div class=""container py-5"">
<div class=""row justify-content-center"">
<div class=""col-md-8"">
<div class=""card shadow-sm"">
<div class=""card-body"">
<h1 class=""card-title mb-4"">Create New Medicine</h1>
<div class=""modal-header"">
<h5 class=""modal-title"" id=""modalEditLabel"">Create New Medicine</h5>
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close"">
<span aria-hidden=""true"">&times;</span>
</button>
</div>
<div class=""modal-body"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c88157", async() => {
<div class=""container py-5"">
<div class=""row justify-content-center"">
<div class=""col"">
<div class="" shadow-sm"">
<div");
BeginWriteAttribute("class", " class=\"", 615, "\"", 623, 0);
EndWriteAttribute();
WriteLiteral(">\r\n \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e7796", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c88439", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e8082", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#nullable restore
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 26 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;
#line default
......@@ -135,14 +141,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSumma
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n <div class=\"form-group row mb-3\">\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c810255", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e9910", async() => {
WriteLiteral("Trade Name");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 22 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
......@@ -158,13 +164,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c811912", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e11570", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 23 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 31 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
......@@ -180,13 +186,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c813514", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e13176", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.TradeName);
#line default
......@@ -202,14 +208,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c815286", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e14960", async() => {
WriteLiteral("Scientific Name");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
......@@ -225,13 +231,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c816952", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e16630", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 28 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
......@@ -247,13 +253,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c818558", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e18240", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#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_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ScintificName);
#line default
......@@ -269,14 +275,14 @@ __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 class=\"form-group mb-3\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c820371", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e20069", async() => {
WriteLiteral("Description");
}
);
__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"
#line 42 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -292,13 +298,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c822027", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e21729", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper);
#nullable restore
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 43 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -315,13 +321,13 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionPro
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c823738", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e23444", 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"
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Description);
#line default
......@@ -337,14 +343,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n <div class=\"form-group row mb-3\">\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c825575", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e25297", async() => {
WriteLiteral("Side Effects");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 41 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 49 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
......@@ -360,13 +366,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c827235", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e26961", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 42 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 50 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
......@@ -382,13 +388,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c828838", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e28568", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 43 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 51 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SideEffect);
#line default
......@@ -404,14 +410,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c830611", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e30353", async() => {
WriteLiteral("Dosage");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 46 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -427,13 +433,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c832261", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e32007", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 47 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 55 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -449,13 +455,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c833860", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e33610", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 48 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 56 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Dosage);
#line default
......@@ -471,14 +477,14 @@ __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 class=\"form-group row mb-3\">\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c835730", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e35500", async() => {
WriteLiteral("Category");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line default
......@@ -494,13 +500,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c837389", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e37163", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 55 "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_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line default
......@@ -516,13 +522,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c838995", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e38773", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 56 "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_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Category.Name);
#line default
......@@ -538,14 +544,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-6\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c840771", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e40561", async() => {
WriteLiteral("Manufacturer");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 59 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 67 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
......@@ -561,13 +567,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c842436", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e42230", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 60 "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_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
......@@ -583,13 +589,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c844044", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e43842", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 61 "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_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ManufactureName);
#line default
......@@ -605,14 +611,14 @@ __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 class=\"form-group mb-3\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c845859", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e45673", async() => {
WriteLiteral("Image File");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 66 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 74 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ImageFile);
#line default
......@@ -628,13 +634,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c847512", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e47330", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 67 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 75 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ImageFile);
#line default
......@@ -650,13 +656,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c849110", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e48932", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 68 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ImageFile);
#line default
......@@ -672,14 +678,14 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n <div class=\"form-group mb-4\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c850881", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e50715", async() => {
WriteLiteral("Medicine Type");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#nullable restore
#line 72 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 80 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
......@@ -695,13 +701,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c852549", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3808917f5d76c573867efae7a29b007606097b6e52387", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#nullable restore
#line 73 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 81 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
......@@ -717,13 +723,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, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c854159", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3808917f5d76c573867efae7a29b007606097b6e54001", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#nullable restore
#line 74 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 82 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.MedicineType.TypeName);
#line default
......@@ -738,35 +744,25 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <button type=\"submit\" class=\"btn btn-primary\">Create</button>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9adc6a6658017632783aa7bb2ef9b9c32b03d7c856034", 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);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n ");
WriteLiteral(@"
</div>
<div class=""form-group"">
<button type=""submit"" class=""btn btn-primary"">Create</button>
<button type=""button"" class=""btn btn-secondary"" data-dismiss=""modal"">Close</button>
</div>
");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
__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);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_6.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -774,16 +770,17 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n");
WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 89 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
#line 97 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Create.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
#line hidden
#nullable disable
WriteLiteral(" ");
}
);
}
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b59ddab6f4ba44be6f22ef8a97ca3c884a481a11"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "56aec30c0872d0822567d43061bdd1442ae782b9"
// <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")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b59ddab6f4ba44be6f22ef8a97ca3c884a481a11", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"56aec30c0872d0822567d43061bdd1442ae782b9", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MedicineViewModel>
{
......@@ -54,8 +54,6 @@ using System;
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", "Index", 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", "AddIngredints", 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("asp-controller", "Medicine", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -100,19 +98,19 @@ using System;
<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""
<div class=""col-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, "b59ddab6f4ba44be6f22ef8a97ca3c884a481a116604", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "56aec30c0872d0822567d43061bdd1442ae782b95986", 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("", 716, "~/img/", 716, 6, true);
AddHtmlAttributeValue("", 713, "~/img/", 713, 6, true);
#nullable restore
#line 18 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#line default
#line hidden
......@@ -162,14 +160,14 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#nullable disable
WriteLiteral(@""">Delete</button>
</div>
<div class=""col-md-8"">
<div class=""col-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"">");
<div class=""col mb-3"">
<h6>
Description : <span class=""text-muted"">");
#nullable restore
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Description);
......@@ -177,38 +175,43 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n <h6>Type:");
WriteLiteral("</span>\r\n </h6>\r\n </div>\r\n <div class=\"col-12 row mb-3\">\r\n <h6 class=\"col\">Type:");
#nullable restore
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.MedicineType?.TypeName);
#line default
#line hidden
#nullable disable
WriteLiteral("</h6>\r\n <p class=\"text-muted\">Dosage : ");
WriteLiteral("</h6>\r\n <h6 class=\"col text-muted\">Dosage : ");
#nullable restore
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 37 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Dosage);
#line default
#line hidden
#nullable disable
WriteLiteral("</p>\r\n <p class=\"text-muted\">Price : ");
WriteLiteral("</h6>\r\n <h6 class=\"col text-muted\">Price : ");
#nullable restore
#line 37 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 38 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Price);
#line default
#line hidden
#nullable disable
WriteLiteral(@"</p>
WriteLiteral(@"</h6>
</div>
</div>
</div>
</div>
<div class=""col-12 p-3"">
<h6>Ingredients : </h6>
<hr class=""mt-0 mb-4"">
<div class=""row pt-1"">
<table id=""Ingredients_"" class=""table table-bordered"">
<thead>
<div class=""row pt-1 p-3"">
<table id=""Ingredients_"" class="" p-4 table table-bordered"">
<thead class=""thead-light"">
<tr>
<td>#</td>
<td>Name</td>
......@@ -220,7 +223,31 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
<tbody>
");
#nullable restore
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
if (Model.MedicineIngredients.Count == 0)
{
#line default
#line hidden
#nullable disable
WriteLiteral(@" <tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
");
#nullable restore
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
}
#line default
#line hidden
#nullable disable
#nullable restore
#line 71 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
foreach (var ing in Model.MedicineIngredients)
{
......@@ -229,7 +256,7 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#nullable disable
WriteLiteral(" <tr class=\" mb-3\">\r\n <td>");
#nullable restore
#line 57 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 74 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(a+=1);
#line default
......@@ -237,7 +264,7 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 75 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(ing.Ingredient.Name);
#line default
......@@ -245,7 +272,7 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 59 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(ing.Ingredient.Description);
#line default
......@@ -253,46 +280,46 @@ AddHtmlAttributeValue("", 722, Model.ImageName, 722, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 77 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(ing.Ratio);
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n <td>\r\n <button class=\"btn btn-danger\"");
BeginWriteAttribute("ondblclick", " ondblclick=\'", 3637, "\'", 3794, 16);
WriteAttributeValue("", 3650, "DeleteConfirm(\"Delete", 3650, 21, true);
WriteAttributeValue(" ", 3671, "Confirm\",", 3672, 10, true);
WriteAttributeValue(" ", 3681, "\"Are", 3682, 5, true);
WriteAttributeValue(" ", 3686, "you", 3687, 4, true);
WriteAttributeValue(" ", 3690, "sure", 3691, 5, true);
WriteAttributeValue(" ", 3695, "you", 3696, 4, true);
WriteAttributeValue(" ", 3699, "want", 3700, 5, true);
WriteAttributeValue(" ", 3704, "to", 3705, 3, true);
WriteAttributeValue(" ", 3707, "delete", 3708, 7, true);
BeginWriteAttribute("ondblclick", " ondblclick=\'", 4372, "\'", 4529, 16);
WriteAttributeValue("", 4385, "DeleteConfirm(\"Delete", 4385, 21, true);
WriteAttributeValue(" ", 4406, "Confirm\",", 4407, 10, true);
WriteAttributeValue(" ", 4416, "\"Are", 4417, 5, true);
WriteAttributeValue(" ", 4421, "you", 4422, 4, true);
WriteAttributeValue(" ", 4425, "sure", 4426, 5, true);
WriteAttributeValue(" ", 4430, "you", 4431, 4, true);
WriteAttributeValue(" ", 4434, "want", 4435, 5, true);
WriteAttributeValue(" ", 4439, "to", 4440, 3, true);
WriteAttributeValue(" ", 4442, "delete", 4443, 7, true);
#nullable restore
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue(" ", 3714, ing.Ingredient.Name, 3715, 20, false);
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue(" ", 4449, ing.Ingredient.Name, 4450, 20, false);
#line default
#line hidden
#nullable disable
WriteAttributeValue(" ", 3735, "From", 3736, 5, true);
WriteAttributeValue(" ", 3740, "this", 3741, 5, true);
WriteAttributeValue(" ", 3745, "medicine\",", 3746, 11, true);
WriteAttributeValue(" ", 3756, "\"ReomveIngredient\",", 3757, 20, true);
WriteAttributeValue(" ", 4470, "From", 4471, 5, true);
WriteAttributeValue(" ", 4475, "this", 4476, 5, true);
WriteAttributeValue(" ", 4480, "medicine\",", 4481, 11, true);
WriteAttributeValue(" ", 4491, "\"ReomveIngredient\",", 4492, 20, true);
#nullable restore
#line 62 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
#line default
#line hidden
#nullable disable
WriteAttributeValue("", 3793, ")", 3793, 1, true);
WriteAttributeValue("", 4528, ")", 4528, 1, true);
EndWriteAttribute();
WriteLiteral(">Delete</button>\r\n </td>\r\n\r\n </tr>\r\n");
#nullable restore
#line 66 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 83 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
}
#line default
......@@ -301,10 +328,11 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
WriteLiteral(@" </tbody>
</table>
</div>
<hr />
<div class=""row pt-1"">
<div class=""col-6 mb-3"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b59ddab6f4ba44be6f22ef8a97ca3c884a481a1116630", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "56aec30c0872d0822567d43061bdd1442ae782b917157", async() => {
WriteLiteral("Back to List");
}
);
......@@ -319,39 +347,6 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b59ddab6f4ba44be6f22ef8a97ca3c884a481a1117948", async() => {
WriteLiteral("Add Ingredients ");
}
);
__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);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
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 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.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(@"
</div>
......@@ -363,7 +358,7 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
</div>
</div>
</div>
</div>
</div>
......@@ -411,7 +406,7 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
async function updateIngredients() {
let id =");
#nullable restore
#line 131 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 145 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -420,10 +415,10 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
WriteLiteral(@";
debugger;
try {
let response = await fetch(`/Medicine/GetMedcineIngredient/${id}`); // Adjust the endpoint as needed
let response = await fetch(`/Medicine/GetMedicineIngredient/${id}`); // Adjust the endpoint as needed
if (response.ok) {
let medicines = await response.json();
medicines = medicines.medicineIngredients
medicines = medicines.result
populateTable(medicines, 'Ingredients_');
} else {
console.error('Error:', response.statusText);
......@@ -437,51 +432,73 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
let tableBody = document.querySelector('#' + tableName);
tableBody.innerHTML = `
<table class=""table"">
<thead>
<thead class=""thead-light"">
<tr>
<td>Name</td>
<td>Description</td>
${tableName==""t"" ?"" "":""<td>Ratio</td>""}
<td>Mana");
WriteLiteral(@"ge</td>
<td>Description</td>${
tableName==""t"" ?"" "":""<td>Ratio</td>""
");
WriteLiteral(@" }<td>Manage</td>
</tr>
</thead ><tbody id=""${tableName + ""b""}"" > </tbody></table>`;
</thead >
<tbody id=""${tableName + ""b""}"" >
</tbody>
</table>`;
tableBody = document.querySelector(""#"" + tableName + ""b"");
if (medicines.length == 0 && tableName != ""t"") {
tableBody.innerHTML =`
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
`
}
medicines.forEach(medicine => {
let row = document.createElement('tr');
row.classList = ""mb-3""
if (tableName == ""t"") {
row.innerHTML = `
<td>${medicine.name}</td>
");
WriteLiteral(@"<td>${medicine.name}</td>
<td>${medicine.description}</td>
${tableName == ""t"" ? "" "" : medicine.ratio}
`;
row.innerHTML +=
(tableName != ""t"") ?
`
<td>
<button
class=""btn btn-primary"" onclick=""addIngredient( ${medicine.id})"" data-dismiss=""modal"" aria-label=""Close"">
Add
</button>
</td> `
<button class=""btn btn-danger"" ondblclick='DeleteConfirm(""Delete Confirm"", ""Are you sure you want to delete ${medicine.name}From this medicine"", ""ReomveIngredient"",${medicine.ingredient.id})'>Delete</button>
</td>
` :
`<td>
");
WriteLiteral(@" <button class=""btn btn-primary"" onclick=""addIngredient( ${medicine.id})"" data-dismiss=""modal"" aria-label=""Close"">Add</button>
} else {
</td>
`
let m = ` ""Are you sure you want to delete ${medicine.ingredient.name}From this medicine""`;
row.innerHTML = `
<td>${medicine.ingredient.name}</td>
<td>${medicine.ingredient.description}</td>
${ medicine.ratio}
<td>
<button
class=""btn btn-danger"" onclick='DeleteConfirm(""Delete Confirm"",${m}, ""ReomveIngredient"", ${medicine.ingredient.id})'>
Delete
</button >
</");
WriteLiteral(@"td >`;
}
tableBody.appendChild(row);
});
tableBody.innerHTML += ``;
}
function addIngredient(med) {
......@@ -492,15 +509,15 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
<div class=""modal-dialog"">
<div class=""modal-content"">
<div class=""modal-header border-bottom-0"">
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close"">
<button type=""button"" class=""close input"" data-dismiss=""modal"" aria-label=""Close"">
<span aria-hidden=""true"">
<i class=""fas fa-times""></i>
</span>
</button>
");
WriteLiteral(@" </div>
</div>
<div class=""modal-body text-start p-3"">
<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">chose the ratio</h5>
<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">chose th");
WriteLiteral(@"e ratio</h5>
<p class="" mb-5""> what is the ratio </p>
<input type=""number"" value=1 id=""r"">
......@@ -516,10 +533,15 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
</div>
</div> `;
// Show the modal
const medicineModal = new bootstrap.M");
WriteLiteral("odal(document.getElementById(\'item\'));\r\n medicineModal.show();\r\n\r\n\r\n }\r\n async function addIngredientT(med) {\r\n let id =");
const medicineModal = new bootstrap.Modal(document.getElementById('item'));
medicineModal.show();
}
async function addIngredientT(med) {
let id =");
#nullable restore
#line 233 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 268 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -541,7 +563,7 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
if (response.ok) {
let result = await response.json();
updateIngredients();
showToast('Medicine added successfully', 'Success');
showToast(result.message, result.result);
} else {
console.error('Error:', response.statusText);
showToast('Failed to add medicine', 'Error');
......@@ -549,10 +571,10 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
} catch (error) {
console.error('Fetch error:', error);
showToast('Failed to add medicine', 'Error');
");
WriteLiteral(" }\r\n }\r\n async function DetailMedicine(med) {\r\n let id =");
} ");
WriteLiteral("\n }\r\n async function DetailMedicine(med) {\r\n let id =");
#nullable restore
#line 260 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 295 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -585,7 +607,7 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
async function ReomveIngredient(med) {
let id =");
#nullable restore
#line 285 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 320 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -605,10 +627,10 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
if (response.ok) {
let result = await response.json();
showToast(result.message, result.result);
updateIngredients();
showToast('Medicine Reomved successfully', 'Success');
} else {
console.error('Error:', response.statusText);
showToast('Failed to remove medicine', 'Error');
......@@ -617,10 +639,10 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
console.error('Fetch error:', error);
showToast('Failed to remove medicine', 'Error');
}
");
WriteLiteral(@" }
}
async function DeleteConfirm(title, message, action, param) {
");
WriteLiteral(@" async function DeleteConfirm(title, message, action, param) {
debugger
const modalBody = document.querySelector('#mod');
modalBody.innerHTML = `
......@@ -638,9 +660,9 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
<div class=""modal-body text-start p-3"">
<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">${title}</h5>
<p class="" mb-5""> ${me");
WriteLiteral(@"ssage}</p>
<p class="" mb-5""> ${message}</p>
");
WriteLiteral(@"
<hr class=""mt-2 mb-4""
style=""height: 0; background-color: transparent; opacity: .75; border-top: 2px dashed #9e9e9e;"">
<div class=""modal-footer d-flex justify-content-center border-top-0 py-4"">
......@@ -661,9 +683,9 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
const Modal = new bootstrap.Modal(document.getElementById('item'));
// Modal.close();
try {
Modal.dispose();");
WriteLiteral(@"
} catch { }
Modal.dispose();
");
WriteLiteral(@" } catch { }
const modalBody = document.querySelector('#mod');
modalBody.innerHTML = `
......@@ -709,9 +731,9 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
<tr class="" mb-3"">
<td>${s[i].name}</td>
<td>${s[i].description}<");
WriteLiteral(@"/td>
<td>
<td>${s[i].description}</td>
");
WriteLiteral(@" <td>
<button class=""btn btn-info"" onclick=""addIngredient(${s[i].id})"">Add</button>
</td>
</tr>
......@@ -733,7 +755,7 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
</div>
<div class=""modal-body text-start p-3"">
");
WriteLiteral(@" <h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">All Ingredients</h5>
WriteLiteral(@"<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">All Ingredients</h5>
<hr class=""mt-2 mb-4""
style=""height: 0; background-color: transparent; opacity: .75; border-top: 2px dashed #9e9e9e;"">
......@@ -752,8 +774,8 @@ WriteAttributeValue("", 3776, ing.IngredientId, 3776, 17, false);
</table>
<hr class=""mt-2 mb-4""
style=""height: 0; background-color: transparent; opacity: .75; border-top");
WriteLiteral(@": 2px dashed #9e9e9e;"">
style=""height: 0; background-color: transparent; opacity: .75; border-top: 2px dashed ");
WriteLiteral(@"#9e9e9e;"">
</div>
<div class=""modal-footer d-flex justify-content-center border-top-0 py-4"">
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1d969884bc49aef44ddff7588a3b0c9cb236f931"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b021da21ba294a16deee8c9a879315a0bd94df11"
// <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")]
......@@ -46,16 +46,14 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"1d969884bc49aef44ddff7588a3b0c9cb236f931", @"/Views/Medicine/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b021da21ba294a16deee8c9a879315a0bd94df11", @"/Views/Medicine/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<MedicineViewModel>>
{
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = 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_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-primary animate__animated animate__zoomIn"), 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", "Details", 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", "Medicine", 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("m-1 btn btn-danger"), 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("title", new global::Microsoft.AspNetCore.Html.HtmlString("Details"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Details", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Medicine", 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("m-1 btn btn-sm btn-info"), 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("title", new global::Microsoft.AspNetCore.Html.HtmlString("Details"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -124,24 +122,7 @@ using System;
<div class=""col"">
<h2 class=""mb-4 animate__animated animate__fadeIn"">Medicines Details</h2>
<p class=""animate__animated animate__fadeIn"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1d969884bc49aef44ddff7588a3b0c9cb236f9317360", async() => {
WriteLiteral("Create New");
}
);
__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_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
<button class=""btn btn-success ml-2 btn-create"">Create New </button>
</p>
<div class=""table-responsive"">
<table class=""table table-striped table-bordered"" id=""datatablesSimple"">
......@@ -150,7 +131,8 @@ using System;
<th>Medicine Name</th>
<th>Description</th>
<th>Category</th>
");
WriteLiteral(@" <th>Category</th>
<th>Type</th>
<th>Price</th>
<th>Manage</th>
......@@ -206,7 +188,7 @@ using System;
#line default
#line hidden
#nullable disable
WriteLiteral("</td>\r\n <td>\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-warning btn-edit m-1\" data-id=\"");
WriteLiteral("</td>\r\n <td>\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-sm btn-warning btn-edit m-1\" data-id=\"");
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml"
Write(item.Id);
......@@ -214,7 +196,7 @@ using System;
#line default
#line hidden
#nullable disable
WriteLiteral("\">Edit</button>\r\n <button class=\"btn btn-danger btn-delete m-1 \" data-id=\"");
WriteLiteral("\">Edit</button>\r\n <button class=\"btn btn-sm btn-danger btn-delete m-1 \" data-id=\"");
#nullable restore
#line 61 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Index.cshtml"
Write(item.Id);
......@@ -223,16 +205,16 @@ using System;
#line hidden
#nullable disable
WriteLiteral("\">Delete</button>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1d969884bc49aef44ddff7588a3b0c9cb236f93112128", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b021da21ba294a16deee8c9a879315a0bd94df1110334", async() => {
WriteLiteral("Details");
}
);
__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_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
......@@ -248,8 +230,8 @@ using System;
__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);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1e31290add29e3cb68f3066fb96aa01dab8a4f6e"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa9"
// <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")]
......@@ -53,7 +53,7 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"1e31290add29e3cb68f3066fb96aa01dab8a4f6e", @"/Views/Shared/_AdminLayout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"86bb8bd605ff0ee31eb64833f9c0b5b308d24fa9", @"/Views/Shared/_AdminLayout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Shared__AdminLayout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
......@@ -71,23 +71,21 @@ using Microsoft.AspNetCore.Identity;
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("nav-link"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_12 = 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_13 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("nav-link collapsed"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_14 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Inedx", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_15 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Patients", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_16 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-toggle", new global::Microsoft.AspNetCore.Html.HtmlString("collapse"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_17 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#collapseLayouts"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_18 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-expanded", new global::Microsoft.AspNetCore.Html.HtmlString("false"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_19 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-controls", new global::Microsoft.AspNetCore.Html.HtmlString("collapseLayouts"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_20 = 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_21 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredients", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_22 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#ing"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_23 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredient", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_24 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Medicine", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_25 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#cPages"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_26 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-controls", new global::Microsoft.AspNetCore.Html.HtmlString("collapsePages"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_27 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/jquery.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_28 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/bootstrap.bundle.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_29 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/jquery.easing.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_30 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("sb-nav-fixed"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_14 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Patients", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_15 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-toggle", new global::Microsoft.AspNetCore.Html.HtmlString("collapse"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_16 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#collapseLayouts"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_17 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-expanded", new global::Microsoft.AspNetCore.Html.HtmlString("false"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_18 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-controls", new global::Microsoft.AspNetCore.Html.HtmlString("collapseLayouts"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_19 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Ingredient", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_20 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#ing"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_21 = 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_22 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Medicine", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_23 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-bs-target", new global::Microsoft.AspNetCore.Html.HtmlString("#cPages"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_24 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("aria-controls", new global::Microsoft.AspNetCore.Html.HtmlString("collapsePages"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_25 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/jquery.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_26 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/bootstrap.bundle.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_27 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/jquery.easing.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_28 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("sb-nav-fixed"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -119,7 +117,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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e15198", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa914586", 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();
......@@ -134,15 +132,10 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
WriteLiteral(@"</title>
<link href=""https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css"" rel=""stylesheet"" />
<link href=""/css/styles.css"" rel=""stylesheet"" />
<link href=""/favicon.png"" rel=""icon"">
<script src=""https://code.jquery.com/jquery-3.5.1.min.js""></script>
<!-- Custom fonts for this theme -->
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e16654", async() => {
WriteLiteral("</title>\r\n");
WriteLiteral(" <link href=\"/css/styles.css\" rel=\"stylesheet\" />\r\n <link href=\"/favicon.png\" rel=\"icon\">\r\n");
WriteLiteral(" \r\n <!-- Custom fonts for this theme -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa915936", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -158,7 +151,7 @@ using Microsoft.AspNetCore.Identity;
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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e18173", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa917455", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -173,7 +166,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <!-- Theme CSS -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e19378", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa918660", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -200,7 +193,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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e21375", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa920657", async() => {
WriteLiteral(@"
<nav class=""sb-topnav navbar navbar-expand navbar-dark bg-dark"">
<!-- Navbar Brand-->
......@@ -208,7 +201,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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e21957", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa921239", async() => {
WriteLiteral(@"
<div class=""input-group"">
<input class=""form-control"" type=""text"" placeholder=""Search for..."" aria-label=""Search for..."" aria-describedby=""btnNavbarSearch"" />
......@@ -245,7 +238,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("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e24702", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa923984", async() => {
WriteLiteral("\r\n Logout\r\n ");
}
);
......@@ -283,7 +276,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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e27281", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa926563", async() => {
WriteLiteral("\r\n <div class=\"sb-nav-link-icon\"><i class=\"fas fa-tachometer-alt\"></i></div>\r\n Dashboard\r\n ");
}
);
......@@ -300,7 +293,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"sb-sidenav-menu-heading\">Interface</div>\r\n\r\n <!-- Patient Managment -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e28927", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa928209", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-columns""></i></div>
Patients Managment
......@@ -311,33 +304,14 @@ using Microsoft.AspNetCore.Identity;
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_14.Value;
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_14.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_15.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_16);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_17);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_18);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_19);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"collapse\" id=\"collapseLayouts\" aria-labelledby=\"headingOne\" data-bs-parent=\"#sidenavAccordion\">\r\n <nav class=\"sb-sidenav-menu-nested nav\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e31335", async() => {
WriteLiteral("Add Patient ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_15.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_20.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_20);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -345,16 +319,16 @@ using Microsoft.AspNetCore.Identity;
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e32899", async() => {
WriteLiteral("\r\n <div class=\"collapse\" id=\"collapseLayouts\" aria-labelledby=\"headingOne\" data-bs-parent=\"#sidenavAccordion\">\r\n <nav class=\"sb-sidenav-menu-nested nav\">\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa930621", async() => {
WriteLiteral("ALL Patients ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_15.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_14.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
......@@ -365,7 +339,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </nav>\r\n </div>\r\n\r\n <!-- Ingredients Managment -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e34590", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa932312", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-columns""></i></div>
Ingredients Manage
......@@ -378,12 +352,12 @@ using Microsoft.AspNetCore.Identity;
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_16);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_19.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_19);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_20);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_17);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_18);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_19);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -392,17 +366,17 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"collapse\" id=\"ing\" aria-labelledby=\"headingOne\" data-bs-parent=\"#sidenavAccordion\">\r\n <nav class=\"sb-sidenav-menu-nested nav\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e36986", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa934708", async() => {
WriteLiteral("Add Ingredient ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_23.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_23);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_20.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_20);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_19.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_19);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -411,15 +385,15 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e38553", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa936275", async() => {
WriteLiteral("ALL Ingredients ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_23.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_23);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_19.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_19);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
......@@ -430,7 +404,7 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </nav>\r\n </div>\r\n\r\n <!-- Medicine Managment -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e40244", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa937966", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-book-open""></i></div>
Medicine Managment
......@@ -443,12 +417,12 @@ using Microsoft.AspNetCore.Identity;
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_24.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_24);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_16);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_25);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_18);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_26);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_23);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_17);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_24);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -457,17 +431,17 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <div class=\"collapse\" id=\"cPages\" aria-labelledby=\"headingOne\" data-bs-parent=\"#sidenavAccordion\">\r\n <nav class=\"sb-sidenav-menu-nested nav\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e42645", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa940367", async() => {
WriteLiteral("Add Medicine ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_24.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_24);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_20.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_20);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -476,15 +450,15 @@ using Microsoft.AspNetCore.Identity;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e44210", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa941932", async() => {
WriteLiteral("ALL Medicines ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_24.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_24);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
......@@ -545,10 +519,12 @@ using Microsoft.AspNetCore.Identity;
</div>
<script src=""https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"" crossorigin=""anonymous""></script>
<script src=""/js/scripts.js""></script>
<script src=""https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"" crossorigin=""anonymous""></script>
");
<script src=""/lib/jquery/dist//jquery.min.js""></script>
<script src=""https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"" crossorigin=");
WriteLiteral("\"anonymous\"></script>\r\n\r\n ");
#nullable restore
#line 152 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 155 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(RenderSection("Scripts", required: false));
#line default
......@@ -574,14 +550,18 @@ Write(RenderSection("Scripts", required: false));
</div>
</div>
</div>
<div class=""modal fade"" id=""modal-create"" tabindex=""-1"" role=""dialog"" aria-labelledby=""modalDeleteLabel"" aria-hidden=""true"">
<div class=""modal-dialog"" role=""document"">
<div class=""modal-content"">
<!-- Content loaded via AJAX -->
</div>
</div>
</div>
<script>
$(document).ready(function () {
// Load the Edit form in the modal
$('.btn-edit').on('click', function () {
var id = $(this).data('id');
var controller = `");
$(document).ready(function (");
WriteLiteral(") {\r\n // Load the Edit form in the modal\r\n $(\'.btn-edit\').on(\'click\', function () {\r\n var id = $(this).data(\'id\');\r\n var controller = `");
#nullable restore
#line 177 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 187 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
......@@ -591,24 +571,85 @@ Write(RenderSection("Scripts", required: false));
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id);
$('#modal-edit').modal('show');
});
$(document).on('submit', '#modal-edit form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
");
WriteLiteral(@" $('#modal-edit').find('.modal-content').html(response);
}
}
});
});
$('.btn-create').on('click', function () {
var controller = `");
#nullable restore
#line 217 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
#line hidden
#nullable disable
WriteLiteral(@"`;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
$('.btn-delete').on('click', function () {
var id = $(this).data('id');
var controller = `");
#nullable restore
#line 184 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 223 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
#line hidden
#nullable disable
WriteLiteral("`;\r\n $(\'#modal-delete\').find(\'.modal-content\').load(`/${controller}/Delete/` + id);\r\n $(\'#modal-delete\').modal(\'show\');\r\n });\r\n });\r\n\r\n </script>\r\n <!-- Bootstrap core JavaScript -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e49993", async() => {
WriteLiteral(@"`;
$('#modal-delete').find('.modal-content').load(`/${controller}/Delete/` + id);
$('#modal-delete').modal('show');
});
$(document).on('submit', '#modal-create form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
");
WriteLiteral(" $(\'#modal-create\').find(\'.modal-content\').html(response);\n }\n }\n });\n });\r\n });\r\n\r\n </script>\r\n\r\n <!-- Bootstrap core JavaScript -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa950839", 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_27);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_25);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -617,12 +658,12 @@ Write(RenderSection("Scripts", required: false));
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e51094", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa951940", 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_28);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_26);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -631,12 +672,12 @@ Write(RenderSection("Scripts", required: false));
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, "1e31290add29e3cb68f3066fb96aa01dab8a4f6e52233", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa953079", 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_29);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_27);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -644,13 +685,13 @@ Write(RenderSection("Scripts", required: false));
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n <!-- Custom scripts for this template -->\r\n");
WriteLiteral("\r\n\r\n\r\n <!-- Custom scripts for this template -->\r\n");
WriteLiteral(" <!-- Custom scripts for this template -->\r\n");
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_30);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_28);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fce520051c177c9b8d4cf1e0995bf3cabf76c6a0"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "db60990bbbef4967f11a0f93374fe031b0cfe2b9"
// <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")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"fce520051c177c9b8d4cf1e0995bf3cabf76c6a0", @"/Views/Shared/_Layout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"db60990bbbef4967f11a0f93374fe031b0cfe2b9", @"/Views/Shared/_Layout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Shared__Layout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
......@@ -96,7 +96,7 @@ 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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a010012", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b910012", 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();
......@@ -119,7 +119,7 @@ using System;
#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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a011441", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "db60990bbbef4967f11a0f93374fe031b0cfe2b911441", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -135,7 +135,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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a012960", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "db60990bbbef4967f11a0f93374fe031b0cfe2b912960", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -150,7 +150,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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a014165", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "db60990bbbef4967f11a0f93374fe031b0cfe2b914165", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -177,7 +177,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a016057", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b916057", 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 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
......@@ -196,8 +196,8 @@ using System;
<ul class=""navbar-nav ml-auto"">
<li class=""nav-item mx-0 mx-lg-1"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a017434", async() => {
WriteLiteral("Medicines");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b917434", async() => {
WriteLiteral("Medicines Cases");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
......@@ -215,7 +215,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </li>\r\n <li class=\"nav-item mx-0 mx-lg-1\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a019071", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b919077", async() => {
WriteLiteral("Home");
}
);
......@@ -234,7 +234,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </li>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a020643", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "db60990bbbef4967f11a0f93374fe031b0cfe2b920649", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
......@@ -297,7 +297,7 @@ using System;
<p class=""lead mb-0"">
here is the link to the Dashboard<br />
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a023857", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b923863", async() => {
WriteLiteral("Click me !.");
}
);
......@@ -338,7 +338,7 @@ using System;
<!-- Bootstrap core JavaScript -->
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a025998", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b926004", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -352,7 +352,7 @@ using System;
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a027099", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b927105", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -366,7 +366,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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a028238", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b928244", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -380,7 +380,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, "fce520051c177c9b8d4cf1e0995bf3cabf76c6a029392", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db60990bbbef4967f11a0f93374fe031b0cfe2b929398", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -411,6 +411,13 @@ Write(RenderSection("Scripts", required: false));
</div>
</div>
</div>
<div class=""modal fade"" id=""modal-create"" tabindex=""-1"" role=""dialog"" aria-labelledby=""modalDeleteLabel"" aria-hidden=""true"">
<div class=""modal-dialog"" role=""document"">
<div class=""modal-content"">
<!-- Content loaded via AJAX -->
</div>
</div>
</div>
<div class=""modal fade"" id=""modal-edit"" tabindex=""-1"" role=""dialog"" aria-labelledby=""modalCreateLabel"" aria-hidden=""true"">
<div class=""modal-dialog"" role=""document"">
<div class=""modal-content"">
......@@ -420,27 +427,89 @@ Write(RenderSection("Scripts", required: false));
</div>
<script>
$(document).ready(function () {
// Load the Edit form in the modal
$('.btn-edit').on('click', function () {
var id = $(this).data('id');
var controller = `");
");
WriteLiteral(" // Load the Edit form in the modal\r\n $(\'.btn-edit\').on(\'click\', function () {\r\n var id = $(this).data(\'id\');\r\n var controller = `");
#nullable restore
#line 155 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 162 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(ViewData["Controller"]);
#line default
#line hidden
#nullable disable
WriteLiteral(@"`;
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id);
$('#modal-edit').find('.modal-content').load(`/${controller}/Edit/` + id, function () {
$('#modal-edit').modal('show');
});
});
// Function to handle form submission
$(document).on('submit', '#modal-edit form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-edit').find('.modal-content').html(response);
");
WriteLiteral(@" }
}
});
}); $(document).on('submit', '#modal-create form', function (event) {
event.preventDefault();
var form = $(this);
var url = form.attr('action');
var formData = new FormData(this);
$.ajax({
url: url,
type: 'POST',
data: formData,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
$('#modal-create').find('.modal-content').html(response);
}
}
});
});
$('.btn-create').on('click', function () {
var controller = `");
#nullable restore
#line 217 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(ViewData["Controller"]);
#line default
#line hidden
#nullable disable
WriteLiteral(@"`;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
$('.btn-delete').on('click', function () {
var id = $(this).data('id');
var controller = `");
#nullable restore
#line 162 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
#line 224 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_Layout.cshtml"
Write(ViewData["Controller"]);
#line default
......
ee5748e123c05b8e601c75f3773a2aa816b62a99
adbd2b4013ece48063887b27035f879c92d79512
15cb97b8a060c155cc9b00ed27a476ac44f14fb8
0da6c7b81becaa0cb2886b1309a5a53838d012f3
......@@ -189,3 +189,4 @@ C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Patien
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Patients\Details.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Patients\Delete.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Shared\PartialNotFound.cshtml.g.cs
C:\Users\HASAN\Desktop\Medic\WebPresentation\obj\Debug\net5.0\Razor\Views\Access\ChangePassword.cshtml.g.cs
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