public async Task <IActionResult> GetOrganizationsForPeriod(OrganizationPeriodFilterDto filter)
        {
            var organizations = await unitOfWork.GetRepository <Room_rental>().Query().Where(r => r.InputDate >= filter.DateStart && r.InputDate <= filter.DateEnd)
                                .Select(p => new OrganizationForReportsDto
            {
                Name         = p.Organization.Name,
                Post         = p.Organization.Post,
                InputDate    = p.InputDate,
                OutputDate   = p.OutputDate,
                BuildingName = p.Room.Building.Name,
                RoomNumber   = p.Room.Number
            }).ToListAsync();

            return(Json(organizations));
        }
        public async Task <ActionResult> GetOrganizationsForPeriod([DataSourceRequest] DataSourceRequest request, OrganizationPeriodFilterDto filters)
        {
            var objects = await RestQuery.ExecuteAsync <List <OrganizationForReportsDto> >("http://localhost:57770/", "GetOrganizationsForPeriod", Method.POST, filters);

            return(Json(objects.Data.ToDataSourceResult(request)));
        }