public ActionResult GetUserScheduleMobilesByUser(int start, int limit) { var service = new UserScheduleService(); var list = service.GetUserScheduleMobilesByUserId(Session["currentUserID"].ToString()); return(Json(new { success = true, data = list.Skip(start).Take(limit).Select(x => new { x.Id, x.Location, x.Notes, x.Title, x.Type, EndDate = x.EndDate.ToShortDateString(), StartDate = x.StartDate.ToShortDateString() }).ToList(), total = list.Count })); }
public ActionResult GetUserScheduleMobilesByUserId(string UserId) { var service = new UserScheduleService(); return(Json(service.GetUserScheduleMobilesByUserId(UserId))); }