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