public ListsResponse ToItemListContract(ItemsDb list) { return(new ListsResponse { ListName = list.ItemListName, TypeId = list.TypeId }); }
static ItemsDb() { if ((int)Android.OS.Build.VERSION.SdkInt < 8) { return; } Instance = new ItemsDb(); }
public ItemsResponse ToItemsContract(ItemsDb list) { return(new ItemsResponse { ItemListName = list.ItemListName, TypeId = list.TypeId, ItemCategory = list.ItemCategory, ItemName = list.ItemName, DateRemoved = list.DateRemoved, DueAt = list.DueAt, IsDone = list.Isdone }); }
public async Task AddItem(ItemsDb item) { await _context.SaveAsync(item); }