public ActionResult PassLogList() { // User id int userId = Int32.Parse(Session["Uid"].ToString()); IEnumerable <Pass_Log> pass_Log_List = db.getPass_LogsByUId(userId); return(View(pass_Log_List.OrderByDescending(x => x.Date_Purchased).Take(10))); }