public IActionResult DeleteEmbryologist(long id) { Embryologist er = embryologistRepo.Find(id); if (er == null) { return(NoContent()); } embryologistRepo.Delete(er); return(Ok()); }
public IActionResult UpdateEmbryologist([FromBody] Embryologist model) { embryologistRepo.Update(model); return(new OkObjectResult(new { EmbryologistID = model.EmbryologistId })); }
public IActionResult AddEmbryologist([FromBody] Embryologist model) { embryologistRepo.Add(model); return(new OkObjectResult(new { EmbryologistId = model.EmbryologistId })); }