public JsonResult LoadData([FromBody] SyncParam model) { int courtId = GetCourtId(); int lawUnitId = GetLawUnitId(); var deliveryItems = deliveryItemService.GetDeliveryItemMobileVM(courtId, lawUnitId, model.dateFrom, model.dateTo); var courts = deliveryItemService.GetCourtsMobile(); courts = courts.Where(c => deliveryItems.Any(x => x.CourtId.ToString() == c.value)).ToList(); var notificationStates = deliveryItemService.GetNotificationStateMobile(); var reasons = deliveryItemService.GetDeliveryReasonMobile(); var workingDays = workingDaysService.GetWorkingDaysMobile(courtId); var notificationTypes = deliveryItemService.GetNotificationTypeMobile(); return(Json(new { items = deliveryItems, courts, notificationStates, reasons, workingDays, notificationTypes })); }