//to show the invitations recieved from other users public ActionResult EventsIAmInvitedTo() { //get all invite where youe email is stored in database var tempData = objInvitationBs.GetALL().Where(x => x.Email == User.Identity.Name); List <Event> getEvent = new List <Event>(); foreach (var output in tempData) { getEvent.Add(objEventBs.GetByID(output.EventID)); } return(View(getEvent)); }
// method to show the details of the events public ActionResult EventDetail(int id) { var output = objEventBs.GetByID(id); if (output == null) { return(HttpNotFound()); } return(View(output)); }