public async Task <SlotSimple> ExecuteFreeSlotSearch(RequestParameters requestParameters, DateTime startDate, DateTime endDate, string baseAddress, int userId) { _spineMessage = new SpineMessage(); var freeSlots = await GetFreeSlots(requestParameters, startDate, endDate, baseAddress); var searchExport = new SearchExport { SearchExportData = freeSlots.ExportStreamData, UserId = userId }; var searchExportInstance = _applicationService.AddSearchExport(searchExport); freeSlots.SearchExportId = searchExportInstance.SearchExportId; return(freeSlots); }