public IActionResult UpdateDisease(int id, [FromBody] UpdateDiseaseViewModel updateDisease) { if (id != updateDisease.Id) { return(BadRequest()); } if (!_service.Exist(id)) { return(NotFound()); } var diseaseDTO = DiseaseMapper.UpdateDiseaseVMToDTO(updateDisease); _service.Update(diseaseDTO); return(NoContent()); }