Пример #1
0
        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 { }));
        }
Пример #2
0
 public virtual SystemDataDto ApiSystemUpdate([FromBody] SystemDataDto dto)
 {
     return(systemService.Update(dto));
 }