public async Task CreateNewItem(SupportApplicationFullInfoVM item) { if (await _localStorageService.ContainKeyAsync(key_all)) { var allItems = await _localStorageService.GetItemAsync <List <SupportApplicationFullInfoVM> >(key_all); await _localStorageService.SetItemAsync(key_all, allItems.Prepend(item)); } else { await _localStorageService.SetItemAsync(key_all, new List <SupportApplicationFullInfoVM>() { item }); } if (!await _localStorageService.ContainKeyAsync(key + item.Id)) { await _localStorageService.SetItemAsync(key + item.Id, item); } }
public record FetchApplicationResultAction(SupportApplicationFullInfoVM Application);