public async Task <IActionResult> PutPateint([FromRoute] int id, [FromBody] Chamber chamber)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     if (id != chamber.ChamberId)
     {
         return(BadRequest());
     }
     try
     {
         _repo.Update(chamber);
         var save = await _repo.SaveAsync(chamber);
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!ChamberExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }
 public async Task <IActionResult> PutDeasisHistory([FromRoute] int id, [FromBody] DeasisHistory deasisHistory)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     if (id != deasisHistory.DeasisHistoryId)
     {
         return(BadRequest());
     }
     try
     {
         _repo.Update(deasisHistory);
         var save = await _repo.SaveAsync(deasisHistory);
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!DeasisExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }
 public async Task <IActionResult> PutRoaster([FromRoute] int id, [FromBody] RoasterOfDoctor roaster)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     if (id != roaster.RoasterOfDoctorId)
     {
         return(BadRequest());
     }
     try
     {
         _repo.Update(roaster);
         var save = await _repo.SaveAsync(roaster);
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!RoasterExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }
 public async Task <IActionResult> PutSpecialization([FromRoute] int id, [FromBody] Speacialization speacialization)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     if (id != speacialization.SpeacializationId)
     {
         return(BadRequest());
     }
     try
     {
         _repo.Update(speacialization);
         var save = await _repo.SaveAsync(speacialization);
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!SpeacializationExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }