public async Task <IActionResult> SaveBroadcastGroupChanges([FromBody] VmBroadcastGroupModify broadcastGroup) { try { if (ModelState.IsValid) { await _uow.VoicemailRepository.ModifyBroadcastGroup(broadcastGroup); return(Ok()); } _logger.Warn($"Bad request for modify Broadcast Group.\r\n{JsonConvert.SerializeObject(ModelState)}"); return(BadRequest(ModelState)); } catch (Exception ex) { ex.Data["broadcastGroup"] = JsonConvert.SerializeObject(broadcastGroup); _logger.Error(ex, "Failed to modify broadcast group."); return(StatusCode((Int32)HttpStatusCode.InternalServerError, "Error modifying broadcast group.")); } }
public async Task ModifyBroadcastGroup(VmBroadcastGroupModify dto) { await SqlExecute.InvokeProcSaveAsync(_conStrIvxsvr, "uspModifyBroadcastGroup", dto); }