// GET: RequestKid public ActionResult Index() { if (Session["IsAdmin"] != null) { MongoDB db = new MongoDB(); var orders = db.GetAllOreders(); Orders model = new Orders(); model.EntityList = orders.ToList(); return(View(model)); } else { return(RedirectToAction("../Users/Login")); } }