Пример #1
0
        public async Task <IActionResult> Delete(long id, string returnUrl)
        {
            try
            {
                await _usersDao.DeleteAsync(id);
            }
            catch (Exception e)
            {
                ModelState.AddModelError("", e.Message);
            }

            return(Redirect(returnUrl));
        }