public ActionResult <BaptismTypeDto> UpdateBaptismType(int id, [FromBody] BaptismTypeDto dto) { try { return(Ok(_settingsService.BaptismTypeRepo.Update(id, dto))); } catch (KeyNotFoundException e) { return(NotFound($"{e.Message} ID: {id}")); } }
public ActionResult <BaptismTypeDto> CreateBaptismType([FromBody] BaptismTypeDto dto) { return(Ok(_settingsService.BaptismTypeRepo.Create(dto))); }