Example #1
0
        // GET: Mobile/mEvent
        public ActionResult Details(int?id)
        {
            var data = db.GetActivitiesEventByID(id, null, null).FirstOrDefault();

            if (data == null)
            {
                return(HttpNotFound());
            }

            ViewBag.EventInvitees = db.GetEventInvitees(id);

            return(View(data));
        }
Example #2
0
        public ActionResult Details(int?id)
        {
            var data = db.GetActivitiesEventByID(id, null, null).FirstOrDefault();

            if (data == null)
            {
                return(HttpNotFound());
            }

            ViewBag.EventInvitees = db.GetEventInvitees(id);
            ViewBag.ProjectId     = db.ActivitiesEvents.Where(p => p.EventID == id).Select(p => p.ProjectID).FirstOrDefault();

            return(View(data));
        }