예제 #1
0
 public ActionResult Index()
 {
     if (Request.IsAuthenticated)
     {
         var userId  = Guid.Parse(User.Identity.GetUserId());
         var service = new BuildService(userId);
         var model   = service.GetRandomBuilds();
         return(View(model));
     }
     else
     {
         return(View());
     }
 }