public ActionResult Delete(int id) { var response = _roleGroupService.Delete(id); TempData["IsSuccess"] = response.IsSuccess; TempData["Message"] = response.Message; return(RedirectToAction("Index")); }
public async Task <ActionResult <int> > Delete(int id) { return(Ok(await _roleGroupService.Delete(UserId, id))); }