Beispiel #1
0
        public ActionResult <Doctor> EditDoctor(int id, [FromBody] Doctor doctor)
        {
            Doctor old = doctorService.FindDoctor(id);

            if (old == null)
            {
                return(NotFound());
            }
            Doctor result = doctorService.EditDoctor(old, doctor);

            return(Ok(result));
        }
 public User EditProfile(User user)
 {
     return(doctorSevice.EditDoctor((Doctor)user));
 }
Beispiel #3
0
 public ActionResult Post(DoctorCardModel model)
 {
     _doctorService.EditDoctor(model);
     return(Ok());
 }