public ActionResult History() { if (Session["ClientId"] != null) { Int64 clientId = Session["ClientId"] != null?Convert.ToInt64(Session["ClientId"]) : 0; List <ClientsBookingHistory> bookingHistoryList = new List <ClientsBookingHistory>(); bookingHistoryList = BookingManager.ClientsBookingHistory(clientId); return(View("~/Views/Dashboard/History.cshtml", bookingHistoryList.ToList())); } return(RedirectToAction("Login", "Auth")); }