Пример #1
0
        public ActionResult Delete(int id)
        {
            var response = _roleGroupService.Delete(id);

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public async Task <ActionResult <int> > Delete(int id)
 {
     return(Ok(await _roleGroupService.Delete(UserId,
                                              id)));
 }