Beispiel #1
0
 public ListsResponse ToItemListContract(ItemsDb list)
 {
     return(new ListsResponse
     {
         ListName = list.ItemListName,
         TypeId = list.TypeId
     });
 }
Beispiel #2
0
            static ItemsDb()
            {
                if ((int)Android.OS.Build.VERSION.SdkInt < 8)
                {
                    return;
                }

                Instance = new ItemsDb();
            }
Beispiel #3
0
 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
     });
 }
Beispiel #4
0
 public async Task AddItem(ItemsDb item)
 {
     await _context.SaveAsync(item);
 }