示例#1
0
 // GET: Gecko
 public ActionResult Index()
 {
     try
     {
         using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
         {
             string  id = HttpContext.User.Identity.Name;
             UserBLL u  = ctx.FindUserByEmail(id);
             var     m  = ctx.GetGcekosRelatedToUser(0, 100, u.UserID);
             return(View(m));
         }
     }
     catch (Exception ex)
     {
         return(View("Error", ex));
     }
 }