예제 #1
0
 public async Task <IHttpActionResult> RecentLabs()
 {
     return(Json(new
     {
         RecentLabs = await HomeDao.RecentLabs(this)
     }));
 }
예제 #2
0
        public async Task <ActionResult> Index()
        {
            if (UserId == null)
            {
                return(View());
            }

            return(View(new HomeViewModel
            {
                RecentLabs = await HomeDao.RecentLabs(this)
            }));
        }