예제 #1
0
 // GET: Meal/Create
 public ActionResult Create()
 {
     if (Session["employee"] == null)
     {
         return(RedirectToAction("Login", "Login"));
     }
     else
     {
         eventlist = new CEventList();
         eventlist.Load();
         return(View(t_event));
     }
 }
예제 #2
0
 // GET: Event
 public ActionResult Index()
 {
     if (Session["employee"] == null)
     {
         return(RedirectToAction("Login", "Login", new { returnurl = HttpContext.Request.Url }));
     }
     else
     {
         o_events = new CEventList();
         o_events.Load();
         ViewBag.Message = "All Active Events";
         return(View(o_events));
     }
 }