public ActionResult Requests() { ViewData["links"] = getLinks(); ViewData["functions"] = getFunctions(); ModelContainer data = new Models.ModelContainer(); RequestDAO requestdao = new RequestDAO(); Res result = requestdao.ReadAllRequests(x => x.aspnet_Users.UserName.ToLower() == User.Identity.Name, data); if (result.Success) { return View(result.Value); } else return RedirectToAction("Errors", "Shared"); }
public ActionResult Requests() { ViewData["links"] = getLinks(); ViewData["functions"] = getFunctions(); ModelContainer data = new Models.ModelContainer(); RequestDAO requestdao = new RequestDAO(); Res result = requestdao.ReadAllRequests(x => (true), data); if (result.Success) { return View(result.Value); } else return RedirectToAction("Errors", "Shared"); }