示例#1
0
 public ActionResult Create(Event e)
 {
     try
     {
         e.Email = User.Identity.GetUserName();
         serviceBusiness.AddEvent(e);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }