Esempio n. 1
0
        public async Task OnPost()
        {
            var userId = HttpContext.Items["userId"].ToString();
            await _doctorService.Create(long.Parse(userId), Input);

            Specializations = await _doctorService.ListAllSpecializations();

            Redirect("Profile");
        }
 public ActionResult Create(Doctor Model)
 {
     try
     {
         // TODO: Add insert logic here
         Service.Create(Model);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public Doctor Create(Doctor entity)
 => _doctorService.Create(entity);
Esempio n. 4
0
 public List <DoctorModel> Add(DoctorModel model)
 {
     service.Create(model);
     return(GetAll());
 }
 public Doctor Create(Doctor obj)
 {
     return(_service.Create(obj));
 }
 public Doctor Create(Doctor doctor) => service.Create(doctor);