Commit a98768ba authored by hasan khaddour's avatar hasan khaddour

fix s

parent f402feed
......@@ -21,7 +21,7 @@ namespace WebPresentation.Controllers
protected readonly IMapper _mapper;
protected readonly IService<TDto> _service;
private Func<TDto, bool> _criteriaProtected;
protected Func<TDto, bool> _criteria {
protected Func<TDto, bool> criteria {
get {
if (_criteriaProtected == null) {
_criteriaProtected = GetCriteria();
......@@ -77,7 +77,7 @@ namespace WebPresentation.Controllers
TDto DetailDto = await _service.GetDetails((int)id);
if (DetailDto is null)
return View("NotFound");
if (_criteria(DetailDto))
if (criteria(DetailDto))
{
TVModel model = _mapper.Map<TVModel>(DetailDto);
return View(model);
......@@ -92,7 +92,7 @@ namespace WebPresentation.Controllers
TDto DetailDto = await _service.GetDetails(id);
if (DetailDto == null || !_criteria(DetailDto))
if (DetailDto == null || !criteria(DetailDto))
{
return PartialView("PartialNotFound");
}
......@@ -105,7 +105,7 @@ namespace WebPresentation.Controllers
{
TDto DetailDto = await _service.GetDetails(id);
if (DetailDto == null || !_criteria(DetailDto))
if (DetailDto == null || !criteria(DetailDto))
{
return PartialView("PartialNotFound");
}
......@@ -125,7 +125,7 @@ namespace WebPresentation.Controllers
{
TDto tModel = await _service.GetDetails((int)id);
if (tModel == null || !_criteria(tModel))
if (tModel == null || !criteria(tModel))
{
return PartialView("PartialNotFound");
}
......@@ -149,13 +149,20 @@ namespace WebPresentation.Controllers
return PartialView("PartialNotFound");
}
TDto dto ;
if (ModelState.IsValid)
{
try
{
dto = _mapper.Map<TDto>(viewModel);
if (dto == null || !criteria(dto))
{
return PartialView("PartialNotFound");
}
dto = _service.Update(dto);
}
......@@ -184,7 +191,7 @@ namespace WebPresentation.Controllers
{
TDto dto = _mapper.Map<TDto>(viewModel);
if (viewModel == null || !_criteria(dto))
if (viewModel == null || !criteria(dto))
{
return PartialView(viewModel);
}
......@@ -211,7 +218,7 @@ namespace WebPresentation.Controllers
else
{
TDto model = await _service.GetDetails((int)id);
if (model is null || !_criteria(model))
if (model is null || !criteria(model))
return Ok(new { message = "No Data Found ", result = "Faild" });
return Ok(new { message = "Succed", result = model });
......
......@@ -59,7 +59,7 @@ namespace WebPresentation.Controllers
[HttpPost]
[ValidateAntiForgeryToken]
[ImageLoadFilter]
public async Task<IActionResult> Edit(int id, [FromForm] PatientViewModel viewModel)
public IActionResult Edit(int id, [FromForm] PatientViewModel viewModel)
{
if (id != viewModel.Id)
{
......@@ -99,7 +99,7 @@ namespace WebPresentation.Controllers
}
[Authorize(Roles = "patient")]
public async Task<IActionResult> Details(int? id ) {
public async Task<IActionResult> Details() {
var t = await getCurrentPatient();
return View(t);
......
......@@ -75,7 +75,7 @@ namespace WebPresentation.Controllers
try
{
var medical = await _medicalStateService.GetDetails(medicalStateMedicine.MedicalStateId);
if(!_criteria(medical))
if(!criteria(medical))
return Ok(new { message = "You try to add a medicine for other patient and this is wrong , you shouldn't add a medicine for others", result = "faild" });
var medicalStateMedicineModel = _mapper.Map<MedicalStateMedicineDTO>(medicalStateMedicine);
......@@ -103,7 +103,7 @@ namespace WebPresentation.Controllers
try
{
var medical = await _medicalStateService.GetDetails(medicalStateMedicine.MedicalStateId);
if (!_criteria(medical))
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" });
_medicineService.RemoveFromMedicalState(medicalStateMedicineModel);
......@@ -152,8 +152,7 @@ namespace WebPresentation.Controllers
{
var u = _patientService.GetByUserId(GetUserId()).Result.Id;
_criteria = p => p.PatientId == u;
return _criteria;
return p => p.PatientId == u; ;
}
}
......
......@@ -38,7 +38,7 @@ namespace WebPresentation.Controllers
{
await _ingredientService.RemoveFromMedicine(medicineIngredientModel);
return Ok(new { message = "The Ingredient Removed Successfully", result = "add" });
return Ok(new { message = "add" , result = "The Ingredient Removed Successfully" });
}
catch (DomainException e)
{
......@@ -53,7 +53,7 @@ namespace WebPresentation.Controllers
try
{
await _ingredientService.AddToMedicine(medicineIngredientModel);
return Ok(new { message = "The Ingredient Added Successfully", result = "add" });
return Ok(new { message = "add" , result = "The Ingredient Added Successfully" });
}
catch (DomainException e ) {
......
using Microsoft.AspNetCore.Http;
using ApplicationDomain.Exceptions;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -23,6 +24,12 @@ namespace WebPresentation.Midlewares
{
await _next(httpContext);
}
catch (DomainException ex)
{
httpContext.Response.Redirect("/Home/Error");
}
catch (Exception ex)
{
......@@ -32,6 +39,7 @@ namespace WebPresentation.Midlewares
private static Task HandleExceptionAsync(HttpContext context, Exception exception)
{
//log it then redirect
context.Response.Redirect("/Home/Error");
return Task.CompletedTask;
}
......
......@@ -17,6 +17,7 @@ using ApplicationDomain.Abstraction;
using ApplicationDomain.Repositories;
using ApplicationCore.DTOs;
using ApplicationCore.Mapper;
using WebPresentation.Midlewares;
using System;
using Microsoft.AspNetCore.Http;
using ApplicationCore.Mappere;
......@@ -165,11 +166,13 @@ namespace WebPresentation
}
else
{
app.UseExceptionHandler("/Home/Error");
app.UseMiddleware<ExceptionHandler>();
// app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
// app.UseStatusCodePagesWithRedirects();
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
......
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -8,6 +9,8 @@ namespace WebPresentation.ViewModels
{
public class IngredientViewModel : BaseViewModel
{
[Required]
[MinLength(4)]
public String Name { get; set; }
public String Description { get; set; }
......
......@@ -7,13 +7,19 @@ namespace WebPresentation.ViewModels
{
public class MedicineViewModel : BaseViewModel , IImageForm
{
[Required]
[Display(Name ="Trade Name ")]
public String TradeName { get; set; }
[Required]
[Display(Name = "Scintific Name ")]
public String ScintificName { get; set; }
[Required]
[Display(Name = "Manufacture Name ")]
public String ManufactureName { get; set; }
[Required]
[Display(Name = "Side Effect")]
public String SideEffect { get; set; }
public String Description { get; set; }
......
@model WebPresentation.ViewModels.ChangePasswordViewModel
<section class="page-section py-5">
<form asp-action="ChangePassword" method="post">
<style>
.separator {
border-right: 1px solid #dfdfe0;
}
.icon-btn-save {
padding-top: 0;
padding-bottom: 0;
}
.input-group {
margin-bottom: 10px;
}
.btn-save-label {
position: relative;
left: -12px;
display: inline-block;
padding: 6px 12px;
background: rgba(0,0,0,0.15);
border-radius: 3px 0 0 3px;
}
</style>
<section class="page-section ">
<form asp-action="ChangePassword" class=py-5 method="post">
<div class="container bootstrap snippets bootdey">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-2">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
<span class="glyphicon glyphicon-th"></span>
Change password
</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 separator social-login-box">
<br>
<img alt="" class="img-thumbnail" src="/img/portfolio/Denide.png">
</div>
<div style="margin-top:80px;" class="col-xs-6 col-sm-6 col-md-6 login-box">
<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 class="input-group">
<div class="input-group-addon">
<span class="glyphicon glyphicon-lock"></span>
</div>
<input asp-for="CurrentPassword" class="form-control" type="password" placeholder="Current Password">
</div>
</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 class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-log-in"></span></div>
<input asp-for="NewPassword" class="form-control" type="password" placeholder="New Password">
</div>
</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 class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-log-in"></span></div>
<input asp-for="ConfirmPassword" class="form-control" type="password" placeholder="New Password">
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6"></div>
<div class="col-xs-6 col-sm-6 col-md-6">
<button class="btn icon-btn-save btn-success" type="submit">
<span class="btn-save-label"><i class="glyphicon glyphicon-floppy-disk"></i></span>save
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary">Change Password</button>
</form>
</section>
</form>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
......@@ -7,7 +7,7 @@
ViewData["userName"] = Model.User.FirstName + " " + Model.User.LastName;
ViewData["title"] = "Edit";
ViewData["title"] = "Details";
ViewBag.Avatar = Model.User.Avatar;
ViewData["Controller"] = "Home";
......
......@@ -4,55 +4,142 @@
ViewData["Title"] = "Edit";
}
<style>
.account-settings .user-profile {
margin: 0 0 1rem 0;
padding-bottom: 1rem;
text-align: center;
}
<section class="page-section">
<div class="container py-5">
<div class="row justify-content-center">
<div class="">
<div class="card shadow-sm">
<div class="card-body">
<form asp-action="Edit" class="row g-3" enctype="multipart/form-data">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
.account-settings .user-profile .user-avatar {
margin: 0 0 1rem 0;
}
<div class="col-md-6">
<label asp-for="BIO" class="form-label">Patient Personal info</label>
<input asp-for="BIO" class="form-control" />
<span asp-validation-for="BIO" class="text-danger"></span>
</div>
.account-settings .user-profile .user-avatar img {
width: 90px;
height: 90px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
}
.account-settings .user-profile h5.user-name {
margin: 0 0 0.5rem 0;
}
.account-settings .user-profile h6.user-email {
margin: 0;
font-size: 0.8rem;
font-weight: 400;
}
<div class="col-md-6">
.account-settings .about {
margin: 1rem 0 0 0;
font-size: 0.8rem;
text-align: center;
}
.card {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 0;
margin-bottom: 1rem;
}
.form-control {
border: 1px solid #596280;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
font-size: .825rem;
}
</style>
<section class="page-section ">
<form asp-action="Edit" enctype="multipart/form-data">
<div class="container">
<div asp-validation-summary="ModelOnly" class="row gutters border-1">
<div class="col-xl-3 col-lg-3 col-md-12 col-sm-12 col-12">
<div class="card h-100">
<div class="card-body">
<div class="account-settings">
<div class="user-profile">
<div class="user-avatar">
<img src="/img/@Model.User.Avatar" alt="@Model.User.FirstName">
</div>
<h5 class="user-name">@Model.User.FirstName @Model.User.LastName </h5>
<h6 class="user-email">@Model.User.Email </h6>
</div>
<div class="about">
<h5 class="mb-2 text-primary">About</h5>
<p>@Model.BIO</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9 col-lg-9 col-md-12 col-sm-12 col-12">
<div class="card h-100">
<div class="card-body">
<div class="row gutters">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<h6 class="mb-3 text-primary">Personal Details</h6>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="form-group">
<label asp-for="User.FirstName" class="form-label"></label>
<input asp-for="User.FirstName" class="form-control" />
<span asp-validation-for="User.FirstName" class="text-danger"></span>
</div>
<div class="col-md-6">
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="form-group">
<label asp-for="User.LastName" class="form-label"></label>
<input asp-for="User.LastName" class="form-control" />
<input placeholder="@Model.User.LastName" asp-for="User.LastName" class="form-control" />
<span asp-validation-for="User.LastName" class="text-danger"></span>
</div>
<div class="col-12">
<label asp-for="ImageFile" class="form-label">Image File</label>
<input type="file" asp-for="ImageFile" class="form-control" />
<span asp-validation-for="ImageFile" class="text-danger"></span>
</div>
<div class="col-12 mt-4">
<input type="hidden" asp-for="Id" />
<input type="hidden" asp-for="User.Id" />
<input type="hidden" asp-for="UserId" />
<button type="submit" class="btn btn-primary">Save</button>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="form-group">
<label asp-for="User.PhoneNumber" class="form-label"></label>
<input asp-for="User.PhoneNumber" class="form-control" />
<span asp-validation-for="User.PhoneNumber" class="text-danger"></span>
</div>
</form>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="">
<label asp-for="ImageFile" class="form-label"></label>
<input asp-for="ImageFile" class="form-control" />
</div>
</div>
</div>
<div class="row gutters">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<h6 class="mb-3 text-primary">More Info</h6>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="form-group">
<label asp-for="BIO" class="form-label"></label>
<textarea asp-for="BIO" rows="4" class="form-control " ></textarea>
</div>
</div>
</div>
<div class="row gutters">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div class="text-right">
<a type="button" asp-action="Index" asp-controller="Home" class="btn btn-secondary">Cancel</a>
<button type="button" id="submit" name="submit" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
......
......@@ -15,10 +15,10 @@
</div>
<div class="modal-body">
<div class="container py-5">
<div class="container ">
<div class="row justify-content-center">
<div class="col ">
<div class=" shadow-lg p-3 mb-5 bg-white rounded">
<div class=" p-3 bg-white rounded">
<div class="">
<hr />
<form asp-action="Create" method="post">
......@@ -37,14 +37,13 @@
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary btn-lg">Create</button>
<button type="submit" class="btn btn-primary mr-4 btn">Create</button>
<button type="button" class="btn btn-secondary ml-4" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
<div class="text-center">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
......
......@@ -56,7 +56,7 @@
<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-route-id="@item.Id" class="m-1 btn btn-info text-info " title="Details">Details</a>
<a asp-action="Details" asp-route-id="@item.Id" class="m-1 btn btn-info " >Details</a>
</div>
</td>
</tr>
......
......@@ -51,6 +51,7 @@
<h5>Your Medicines in this case:</h5>
<hr class="mt-0 ">
<div class="row p-4">
<div class="table-responsive">
<table id="Ingredients_" class="table table-bordered table-hover">
<thead class="thead-light">
<tr>
......@@ -94,6 +95,8 @@
}
</tbody>
</table>
</div>
</div>
<hr />
<div class="row pt-1">
......
......@@ -8,8 +8,9 @@
<div class="container mt-5">
<div class="row mb-4">
<div class="col text-center">
<h4>
do you have a new Medical case ?
<button class="btn btn-success ml-2 btn-create" >Create</button>
</h4> <button class="btn btn-success ml-2 btn-create" data-controller="MedicalState">Create</button>
</div>
</div>
......
......@@ -23,22 +23,22 @@
<button class="btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
</div>
<div class="col-8">
<div class="card-body p-4">
<h6>Information:</h6>
<div class=" p-4">
<h6 class="text-center">Information</h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col mb-3">
<div class="col-12 mb-3">
<h6>
Description : <span class="text-muted">@Model.Description</span>
</h6>
</div>
<div class="col-12 row mb-3">
<h6 class="col">
<h6 class="col-6">
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>
<h6 class="col-6">Dosage : <span class="text-muted">@Model.Dosage</span></h6>
<h6 class="col-6">Price : <span class="text-muted">@Model.Price</span></h6>
</div>
</div>
......@@ -46,11 +46,12 @@
</div>
<div class="col-12 p-3">
<h6>Ingredients : </h6>
<hr class="mt-0 mb-4">
<h6 class="text-center">Ingredients </h6>
<hr class="">
<div class="row pt-1 p-3">
<table id="Ingredients_" class=" p-4 table table-bordered">
<thead class="thead-light">
<div class="table-responsive">
<table id="Ingredients_" class="table table-bordered">
<thead>
<tr>
<td>#</td>
<td>Name</td>
......@@ -84,17 +85,19 @@
</tr>
}
</tbody>
</table>
</div>
</div>
<hr />
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to List</a>
<div class="col-4 offset-1 mb-3">
<a class="btn btn-primary" asp-action="Index">Back to List</a>
</div>
<div class="col-6 mb-3">
<div class="col-4 mb-3">
<button class="btn btn-primary" onclick="fetchAll()">Get All Ingredients </button>
</div>
......@@ -215,7 +218,7 @@
row.innerHTML = `
<td>${medicine.ingredient.name}</td>
<td>${medicine.ingredient.description}</td>
${ medicine.ratio}
<td>${ medicine.ratio}</td>
<td>
<button
......@@ -284,7 +287,7 @@
if (response.ok) {
let result = await response.json();
updateIngredients();
showToast(result.message, result.result);
showToast(result.result, result.message);
} else {
console.error('Error:', response.statusText);
showToast('Failed to add medicine', 'Error');
......@@ -334,8 +337,9 @@
if (response.ok) {
let result = await response.json();
showToast(result.message, result.result);
updateIngredients();
showToast(result.result, result.message);
} else {
......
@{
@Model String
@{
ViewData["Title"] = "Error";
var c = "An error occurred while processing your request.";
if (! (Model== "" || Model is null )) {
c = Model;
}
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
<h2 class="text-danger">@c</h2>
......@@ -12,15 +12,15 @@
<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="/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">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="~/favicon.png" rel="icon" />
<!-- Theme CSS -->
<link href="~/css/freelancer.css" rel="stylesheet">
......@@ -81,6 +81,7 @@
</a>
<div class="collapse" id="collapseLayouts" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link btn-create" data-Controller="Patients">Add Patient </a>
<a class="nav-link" asp-controller="Patients" asp-action="Index">ALL Patients </a>
</nav>
......@@ -94,8 +95,9 @@
</a>
<div class="collapse" id="ing" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" asp-controller="Ingredient" asp-action="Create">Add Ingredient </a>
<a class="nav-link btn-create" data-Controller="Ingredient" >Add Ingredient </a>
<a class="nav-link" asp-controller="Ingredient" asp-action="Index">ALL Ingredients </a>
</nav>
</div>
......@@ -107,7 +109,7 @@
</a>
<div class="collapse" id="cPages" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" asp-controller="Medicine" asp-action="Create">Add Medicine </a>
<a class="nav-link btn-create" data-Controller="Medicine">Add Medicine </a>
<a class="nav-link" asp-controller="Medicine" asp-action="Index">ALL Medicines </a>
</nav>
</div>
......@@ -215,6 +217,11 @@
$('.btn-create').on('click', function () {
var controller = `@ViewData["Controller"]`;
debugger
var id = $(this).data('controller');
if(id)
controller = id;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3c076b12d43b951c51065bf6ea9fb4b71426c7cb"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "727921bd1d2d3aa7f7552ab385362e9a59fbe218"
// <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", @"3c076b12d43b951c51065bf6ea9fb4b71426c7cb", @"/Views/Ingredient/Create.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"727921bd1d2d3aa7f7552ab385362e9a59fbe218", @"/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>
{
......@@ -107,17 +107,17 @@ using System;
</div>
<div class=""modal-body"">
<div class=""container py-5"">
<div class=""container "">
<div class=""row justify-content-center"">
<div class=""col "">
<div class="" shadow-lg p-3 mb-5 bg-white rounded"">
<div class="" p-3 bg-white rounded"">
<div");
BeginWriteAttribute("class", " class=\"", 612, "\"", 620, 0);
BeginWriteAttribute("class", " class=\"", 593, "\"", 601, 0);
EndWriteAttribute();
WriteLiteral(">\r\n <hr />\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb7450", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe2187431", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb7736", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe2187717", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
......@@ -139,7 +139,7 @@ __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, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb9493", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe2189474", async() => {
WriteLiteral("Name");
}
);
......@@ -162,7 +162,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb11140", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "727921bd1d2d3aa7f7552ab385362e9a59fbe21811121", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -184,7 +184,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb12739", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe21812720", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -206,7 +206,7 @@ __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, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb14514", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe21814495", async() => {
WriteLiteral("Description");
}
);
......@@ -229,7 +229,7 @@ __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, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb16176", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe21816157", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper>();
......@@ -252,7 +252,7 @@ __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, "3c076b12d43b951c51065bf6ea9fb4b71426c7cb17893", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "727921bd1d2d3aa7f7552ab385362e9a59fbe21817874", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
......@@ -277,7 +277,9 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
</div>
<div class=""text-center"">
<button type=""submit"" class=""btn btn-primary btn-lg"">Create</button>
<button type=""submit"" class=""btn btn-primary mr-4 btn"">Create</button>
<button type=""button"" class=""btn btn-secondary ml-4"" data-dismiss=""modal"">Close</button>
</div>
");
}
......@@ -297,22 +299,11 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpr
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
</div>
</div>
<div class=""text-center"">
<button type=""button"" class=""btn btn-secondary"" data-dismiss=""modal"">Close</button>
</div>
</div>
</div>
</div>
</div>
");
WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 54 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
#line 53 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Create.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3302db48136fd4ef2e2cf1b555107dde6de5327d"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b738139b3e92349f64647c3d57c377ddd7479488"
// <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,14 +46,13 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3302db48136fd4ef2e2cf1b555107dde6de5327d", @"/Views/Ingredient/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b738139b3e92349f64647c3d57c377ddd7479488", @"/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", "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);
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 "), 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("name", "_ValidationScriptsPartial", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -177,7 +176,7 @@ using System;
#line hidden
#nullable disable
WriteLiteral("\">Delete</button>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3302db48136fd4ef2e2cf1b555107dde6de5327d9498", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b738139b3e92349f64647c3d57c377ddd74794889142", async() => {
WriteLiteral("Details");
}
);
......@@ -201,7 +200,6 @@ using System;
__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_1);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -235,13 +233,13 @@ using System;
");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3302db48136fd4ef2e2cf1b555107dde6de5327d12647", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "b738139b3e92349f64647c3d57c377ddd747948812208", 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_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_2.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "56aec30c0872d0822567d43061bdd1442ae782b9"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "adbe141f51170bd37ea8c5df4e8fc05ea4c8b8a7"
// <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,14 +46,15 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"56aec30c0872d0822567d43061bdd1442ae782b9", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"adbe141f51170bd37ea8c5df4e8fc05ea4c8b8a7", @"/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>
{
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("Avatar"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("img-fluid my-5"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("style", new global::Microsoft.AspNetCore.Html.HtmlString("width: 80px;"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", 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("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -101,7 +102,7 @@ using System;
<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, "56aec30c0872d0822567d43061bdd1442ae782b95986", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "adbe141f51170bd37ea8c5df4e8fc05ea4c8b8a76341", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -161,11 +162,11 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
WriteLiteral(@""">Delete</button>
</div>
<div class=""col-8"">
<div class=""card-body p-4"">
<h6>Information:</h6>
<div class="" p-4"">
<h6 class=""text-center"">Information</h6>
<hr class=""mt-0 mb-4"">
<div class=""row pt-1"">
<div class=""col mb-3"">
<div class=""col-12 mb-3"">
<h6>
Description : <span class=""text-muted"">");
#nullable restore
......@@ -175,31 +176,37 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#line default
#line hidden
#nullable disable
WriteLiteral("</span>\r\n </h6>\r\n </div>\r\n <div class=\"col-12 row mb-3\">\r\n <h6 class=\"col\">Type:");
WriteLiteral(@"</span>
</h6>
</div>
<div class=""col-12 row mb-3"">
<h6 class=""col-6"">
Type : <span class=""text-muted"">");
#nullable restore
#line 36 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 38 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.MedicineType?.TypeName);
#line default
#line hidden
#nullable disable
WriteLiteral("</h6>\r\n <h6 class=\"col text-muted\">Dosage : ");
WriteLiteral("</span>\r\n </h6>\r\n <h6 class=\"col-6\">Dosage : <span class=\"text-muted\">");
#nullable restore
#line 37 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 40 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Dosage);
#line default
#line hidden
#nullable disable
WriteLiteral("</h6>\r\n <h6 class=\"col text-muted\">Price : ");
WriteLiteral("</span></h6>\r\n <h6 class=\"col-6\">Price : <span class=\"text-muted\">");
#nullable restore
#line 38 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 41 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Price);
#line default
#line hidden
#nullable disable
WriteLiteral(@"</h6>
WriteLiteral(@"</span></h6>
</div>
</div>
......@@ -207,11 +214,15 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
</div>
<div class=""col-12 p-3"">
<h6>Ingredients : </h6>
<hr class=""mt-0 mb-4"">
<h6 class=""text-center"">Ingredients </h6>
<hr");
BeginWriteAttribute("class", " class=\"", 2711, "\"", 2719, 0);
EndWriteAttribute();
WriteLiteral(@">
<div class=""row pt-1 p-3"">
<table id=""Ingredients_"" class="" p-4 table table-bordered"">
<thead class=""thead-light"">
<div class=""table-responsive"">
<table id=""Ingredients_"" class=""table table-bordered"">
<thead>
<tr>
<td>#</td>
<td>Name</td>
......@@ -223,7 +234,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
<tbody>
");
#nullable restore
#line 60 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 64 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
if (Model.MedicineIngredients.Count == 0)
{
......@@ -239,7 +250,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
</tr>
");
#nullable restore
#line 69 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 73 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
}
......@@ -247,7 +258,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#line hidden
#nullable disable
#nullable restore
#line 71 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 75 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
foreach (var ing in Model.MedicineIngredients)
{
......@@ -256,7 +267,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#nullable disable
WriteLiteral(" <tr class=\" mb-3\">\r\n <td>");
#nullable restore
#line 74 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 78 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(a+=1);
#line default
......@@ -264,7 +275,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 75 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(ing.Ingredient.Name);
#line default
......@@ -272,7 +283,7 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 76 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 80 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(ing.Ingredient.Description);
#line default
......@@ -280,66 +291,69 @@ AddHtmlAttributeValue("", 719, Model.ImageName, 719, 16, false);
#nullable disable
WriteLiteral("</td>\r\n <td>");
#nullable restore
#line 77 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 81 "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=\'", 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);
BeginWriteAttribute("ondblclick", " ondblclick=\'", 4782, "\'", 4939, 16);
WriteAttributeValue("", 4795, "DeleteConfirm(\"Delete", 4795, 21, true);
WriteAttributeValue(" ", 4816, "Confirm\",", 4817, 10, true);
WriteAttributeValue(" ", 4826, "\"Are", 4827, 5, true);
WriteAttributeValue(" ", 4831, "you", 4832, 4, true);
WriteAttributeValue(" ", 4835, "sure", 4836, 5, true);
WriteAttributeValue(" ", 4840, "you", 4841, 4, true);
WriteAttributeValue(" ", 4844, "want", 4845, 5, true);
WriteAttributeValue(" ", 4849, "to", 4850, 3, true);
WriteAttributeValue(" ", 4852, "delete", 4853, 7, true);
#nullable restore
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue(" ", 4449, ing.Ingredient.Name, 4450, 20, false);
#line 83 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue(" ", 4859, ing.Ingredient.Name, 4860, 20, false);
#line default
#line hidden
#nullable disable
WriteAttributeValue(" ", 4470, "From", 4471, 5, true);
WriteAttributeValue(" ", 4475, "this", 4476, 5, true);
WriteAttributeValue(" ", 4480, "medicine\",", 4481, 11, true);
WriteAttributeValue(" ", 4491, "\"ReomveIngredient\",", 4492, 20, true);
WriteAttributeValue(" ", 4880, "From", 4881, 5, true);
WriteAttributeValue(" ", 4885, "this", 4886, 5, true);
WriteAttributeValue(" ", 4890, "medicine\",", 4891, 11, true);
WriteAttributeValue(" ", 4901, "\"ReomveIngredient\",", 4902, 20, true);
#nullable restore
#line 79 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
#line 83 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
WriteAttributeValue("", 4921, ing.IngredientId, 4921, 17, false);
#line default
#line hidden
#nullable disable
WriteAttributeValue("", 4528, ")", 4528, 1, true);
WriteAttributeValue("", 4938, ")", 4938, 1, true);
EndWriteAttribute();
WriteLiteral(">Delete</button>\r\n </td>\r\n\r\n </tr>\r\n");
#nullable restore
#line 83 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 87 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
}
#line default
#line hidden
#nullable disable
WriteLiteral(@" </tbody>
WriteLiteral(@"
</tbody>
</table>
</div>
</div>
<hr />
<div class=""row pt-1"">
<div class=""col-6 mb-3"">
<div class=""col-4 offset-1 mb-3"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "56aec30c0872d0822567d43061bdd1442ae782b917157", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "adbe141f51170bd37ea8c5df4e8fc05ea4c8b8a718201", 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_3.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -351,7 +365,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
</div>
<div class=""col-6 mb-3"">
<div class=""col-4 mb-3"">
<button class=""btn btn-primary"" onclick=""fetchAll()"">Get All Ingredients </button>
</div>
......@@ -406,7 +420,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
async function updateIngredients() {
let id =");
#nullable restore
#line 145 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 151 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -484,15 +498,15 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
row.innerHTML = `
<td>${medicine.ingredient.name}</td>
<td>${medicine.ingredient.description}</td>
${ medicine.ratio}
<td>${ medicine.ratio}</td>
<td>
<button
class=""btn btn-danger"" onclick='DeleteConfirm(""Delete Confirm"",${m}, ""ReomveIngredient"", ${medicine.ingredient.id})'>
Delete
</button >
</");
WriteLiteral(@"td >`;
");
WriteLiteral(@" </td >`;
}
......@@ -516,8 +530,8 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
</button>
</div>
<div class=""modal-body text-start p-3"">
<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel"">chose th");
WriteLiteral(@"e ratio</h5>
<h5 class=""modal-title text-uppercase mb-5"" id=""exampleModalLabel""");
WriteLiteral(@">chose the ratio</h5>
<p class="" mb-5""> what is the ratio </p>
<input type=""number"" value=1 id=""r"">
......@@ -541,7 +555,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
async function addIngredientT(med) {
let id =");
#nullable restore
#line 268 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 274 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -563,7 +577,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
if (response.ok) {
let result = await response.json();
updateIngredients();
showToast(result.message, result.result);
showToast(result.result, result.message);
} else {
console.error('Error:', response.statusText);
showToast('Failed to add medicine', 'Error');
......@@ -574,7 +588,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
} ");
WriteLiteral("\n }\r\n async function DetailMedicine(med) {\r\n let id =");
#nullable restore
#line 295 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 301 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -607,7 +621,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
async function ReomveIngredient(med) {
let id =");
#nullable restore
#line 320 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 326 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -627,8 +641,9 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
if (response.ok) {
let result = await response.json();
showToast(result.message, result.result);
updateIngredients();
showToast(result.result, result.message);
} else {
......@@ -660,9 +675,9 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 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""> ${message}</p>
");
WriteLiteral(@"
<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"">
......@@ -755,7 +770,7 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 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;"">
......@@ -774,8 +789,8 @@ WriteAttributeValue("", 4511, ing.IngredientId, 4511, 17, false);
</table>
<hr class=""mt-2 mb-4""
style=""height: 0; background-color: transparent; opacity: .75; border-top: 2px dashed ");
WriteLiteral(@"#9e9e9e;"">
style=""height: 0; background-color: transparent; opacity: .75; border-top: 2px das");
WriteLiteral(@"hed #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\Shared\Error.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c4eee3f4993d74b115dec849687defce31fb03ba"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\Error.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f93d6f0fc50405e0bb699d6e3ffddb42778818ad"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared_Error), @"mvc.1.0.view", @"/Views/Shared/Error.cshtml")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c4eee3f4993d74b115dec849687defce31fb03ba", @"/Views/Shared/Error.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f93d6f0fc50405e0bb699d6e3ffddb42778818ad", @"/Views/Shared/Error.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Shared_Error : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
......@@ -55,13 +55,33 @@ using System;
{
#nullable restore
#line 1 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\Error.cshtml"
Write(Model);
#line default
#line hidden
#nullable disable
WriteLiteral(" String\r\n");
#nullable restore
#line 2 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\Error.cshtml"
ViewData["Title"] = "Error";
var c = "An error occurred while processing your request.";
if (! (Model== "" || Model is null )) {
c = Model;
}
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n<h1 class=\"text-danger\">Error.</h1>\r\n<h2 class=\"text-danger\">");
#nullable restore
#line 11 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\Error.cshtml"
Write(c);
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n<h1 class=\"text-danger\">Error.</h1>\r\n<h2 class=\"text-danger\">An error occurred while processing your request.</h2>\r\n");
WriteLiteral("</h2>\r\n");
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa9"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3ede6c56cff75464b396523697168778b589147a"
// <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", @"86bb8bd605ff0ee31eb64833f9c0b5b308d24fa9", @"/Views/Shared/_AdminLayout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3ede6c56cff75464b396523697168778b589147a", @"/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>
{
......@@ -78,14 +78,13 @@ using Microsoft.AspNetCore.Identity;
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);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_21 = 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_22 = 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_23 = 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_24 = 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_25 = 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_26 = 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_27 = 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;
......@@ -117,7 +116,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa914586", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a14284", 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();
......@@ -132,10 +131,8 @@ using Microsoft.AspNetCore.Identity;
#line default
#line hidden
#nullable disable
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() => {
WriteLiteral("</title>\r\n <link href=\"/css/styles.css\" rel=\"stylesheet\" />\r\n <link href=\"/favicon.png\" rel=\"icon\">\r\n <script src=\"https://code.jquery.com/jquery-3.5.1.min.js\"></script>\r\n\r\n <!-- Custom fonts for this theme -->\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "3ede6c56cff75464b396523697168778b589147a15637", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -150,8 +147,8 @@ 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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa917455", async() => {
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\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3ede6c56cff75464b396523697168778b589147a17160", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -166,7 +163,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa918660", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "3ede6c56cff75464b396523697168778b589147a18365", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -193,7 +190,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa920657", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a20362", async() => {
WriteLiteral(@"
<nav class=""sb-topnav navbar navbar-expand navbar-dark bg-dark"">
<!-- Navbar Brand-->
......@@ -201,7 +198,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa921239", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a20944", async() => {
WriteLiteral(@"
<div class=""input-group"">
<input class=""form-control"" type=""text"" placeholder=""Search for..."" aria-label=""Search for..."" aria-describedby=""btnNavbarSearch"" />
......@@ -238,7 +235,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa923984", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a23689", async() => {
WriteLiteral("\r\n Logout\r\n ");
}
);
......@@ -276,7 +273,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa926563", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a26268", async() => {
WriteLiteral("\r\n <div class=\"sb-nav-link-icon\"><i class=\"fas fa-tachometer-alt\"></i></div>\r\n Dashboard\r\n ");
}
);
......@@ -293,7 +290,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa928209", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a27914", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-columns""></i></div>
Patients Managment
......@@ -319,8 +316,13 @@ using Microsoft.AspNetCore.Identity;
}
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\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa930621", async() => {
WriteLiteral(@"
<div class=""collapse"" id=""collapseLayouts"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
<a class=""nav-link btn-create"" data-Controller=""Patients"">Add Patient </a>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a30431", async() => {
WriteLiteral("ALL Patients ");
}
);
......@@ -339,7 +341,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa932312", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a32122", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-columns""></i></div>
Ingredients Manage
......@@ -365,27 +367,12 @@ 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, "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_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)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa936275", async() => {
WriteLiteral(@"
<div class=""collapse"" id=""ing"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
<a class=""nav-link btn-create"" data-Controller=""Ingredient"" >Add Ingredient </a>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a34631", async() => {
WriteLiteral("ALL Ingredients ");
}
);
......@@ -403,8 +390,8 @@ 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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa937966", async() => {
WriteLiteral("\r\n\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, "3ede6c56cff75464b396523697168778b589147a36326", async() => {
WriteLiteral(@"
<div class=""sb-nav-link-icon""><i class=""fas fa-book-open""></i></div>
Medicine Managment
......@@ -417,31 +404,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_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_23);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_22);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_17);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_24);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
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, "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_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_23);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -449,16 +417,20 @@ using Microsoft.AspNetCore.Identity;
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa941932", async() => {
WriteLiteral(@"
<div class=""collapse"" id=""cPages"" aria-labelledby=""headingOne"" data-bs-parent=""#sidenavAccordion"">
<nav class=""sb-sidenav-menu-nested nav"">
<a class=""nav-link btn-create"" data-Controller=""Medicine"">Add Medicine </a>
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a38835", 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_22.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_21.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_21);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
......@@ -470,7 +442,7 @@ using Microsoft.AspNetCore.Identity;
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </nav>\r\n </div>\r\n\r\n <div class=\"sb-sidenav-footer\">\r\n <div class=\"small\">Logged in as:");
#nullable restore
#line 116 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 118 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(UserManager.GetUserName(User));
#line default
......@@ -490,7 +462,7 @@ using Microsoft.AspNetCore.Identity;
");
#nullable restore
#line 128 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 130 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(RenderBody());
#line default
......@@ -524,7 +496,7 @@ using Microsoft.AspNetCore.Identity;
<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 155 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 157 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(RenderSection("Scripts", required: false));
#line default
......@@ -561,7 +533,7 @@ Write(RenderSection("Scripts", required: false));
$(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 187 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 189 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
......@@ -600,13 +572,18 @@ Write(RenderSection("Scripts", required: false));
$('.btn-create').on('click', function () {
var controller = `");
#nullable restore
#line 217 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 219 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
#line hidden
#nullable disable
WriteLiteral(@"`;
debugger
var id = $(this).data('controller');
if(id)
controller = id;
$('#modal-create').find('.modal-content').load(`/${controller}/create/` );
$('#modal-create').modal('show');
});
......@@ -614,7 +591,7 @@ Write(RenderSection("Scripts", required: false));
var id = $(this).data('id');
var controller = `");
#nullable restore
#line 223 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
#line 230 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Shared\_AdminLayout.cshtml"
Write(ViewData["Controller"]);
#line default
......@@ -641,15 +618,25 @@ Write(RenderSection("Scripts", required: false));
// Redirect to the details page if successful
window.location.href = response.redirectUrl;
} else {
// Replace the modal content with the returned form including validation errors
// Replace the modal content with the returned form including validation e");
WriteLiteral(@"rrors
$('#modal-create').find('.modal-content').html(response);
}
}
});
});
});
</script>
<!-- Bootstrap core JavaScript -->
");
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() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a47896", 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_25);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_24);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -658,12 +645,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa951940", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a48997", 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_26);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_25);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -672,12 +659,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, "86bb8bd605ff0ee31eb64833f9c0b5b308d24fa953079", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3ede6c56cff75464b396523697168778b589147a50136", 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_26);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -691,7 +678,7 @@ Write(RenderSection("Scripts", required: false));
);
__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_28);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_27);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......
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