Commit 5b032c10 authored by hasan khaddour's avatar hasan khaddour

add upload image feature

parent 7b112f0f
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -9,7 +10,6 @@ namespace ApplicationDomain.Entities
public class Patient : EntityBase
{
public String UserId { get; set; }
public User User { get; set; }
public String BIO { get; set; }
......
......@@ -5,7 +5,8 @@
}
<div class="container page-section">
<section class="page-section">
<div class="container ">
<div class="row justify-content-center">
<div class="">
<div class="card shadow-sm">
......@@ -24,7 +25,7 @@
<input asp-for="User.FirstName" class="form-control" />
<span asp-validation-for="User.FirstName" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="User.LastName" class="form-label"></label>
......@@ -35,7 +36,7 @@
<div class="col-12">
<label asp-for="ImageFile" class="form-label">Image File</label>
<input type="file" asp-for="ImageFile" class="form-control" />
<input type="file" asp-for="ImageFile" class="form-control" />
<span asp-validation-for="ImageFile" class="text-danger"></span>
</div>
......@@ -52,7 +53,7 @@
</div>
</div>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment