// GET: Common/Home public ActionResult Index() { var output = objEventBs.GetALL(); return(View("Index", output)); }
// to check how many event is created by you and sort according to date creation public ActionResult MyEvents() { var output = objEventBs.GetALL().Where(x => x.UserID == objUserBs.GetByEmail(User.Identity.Name).UserID); return(View(output)); }