public ActionResult DiscardRequest(int id) { var request = _userBl.GetRequestById(id); request.Status = (int)RequestStatusEnum.Rejected; _userBl.UpdateRequest(request); return(RedirectToAction("GetUserHistory", "UserProfile")); }