public IActionResult UpdateSystemData(SystemDataDto dto) { try { ApiSystemUpdate(dto); } catch (HandledException he) { string messages = he.Message; return(new RedirectToActionResult("Index", "Admin", new { message = messages })); } return(new RedirectToActionResult("Index", "Admin", new { })); }
public virtual SystemDataDto ApiSystemUpdate([FromBody] SystemDataDto dto) { return(systemService.Update(dto)); }