Esempio n. 1
0
        public IActionResult DeleteEmbryologist(long id)
        {
            Embryologist er = embryologistRepo.Find(id);

            if (er == null)
            {
                return(NoContent());
            }
            embryologistRepo.Delete(er);
            return(Ok());
        }
Esempio n. 2
0
        public IActionResult UpdateEmbryologist([FromBody] Embryologist model)
        {
            embryologistRepo.Update(model);

            return(new OkObjectResult(new { EmbryologistID = model.EmbryologistId }));
        }
Esempio n. 3
0
        public IActionResult AddEmbryologist([FromBody] Embryologist model)
        {
            embryologistRepo.Add(model);

            return(new OkObjectResult(new { EmbryologistId = model.EmbryologistId }));
        }