/// <summary> /// Request approve /// </summary> /// <param name="id"> Request id</param> /// <returns> The <see cref="ActionResult"/>.</returns> public ActionResult Confirm(int id) { try { _requestService.Confirm(id); } catch (MissingEntityException) { return(View("InvalidOperation")); } return(RedirectToAction("Index")); }