示例#1
0
 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}"));
     }
 }
示例#2
0
 public ActionResult <ReligiousBackgroundDto> CreateReligiousBackground([FromBody] ReligiousBackgroundDto dto)
 {
     return(Ok(_settingsService.ReligiousBackgroundRepo.Create(dto)));
 }