Beispiel #1
0
 public ActionResult Events(string EvenName)
 {
     if (Session["UserId"] != null)
     {
         if (EvenName != null)
         {
             MyEventsModel events = new MyEventsModel()
             {
                 UserPurchasedEvents = GenericMethods.GetAdminEventsforsearch(EvenName)
             };
             return(View(events));
         }
         else
         {
             MyEventsModel events = new MyEventsModel()
             {
                 UserPurchasedEvents = GenericMethods.GetAdminEvents()
             };
             return(View(events));
         }
     }
     return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" }));
 }