Exemplo n.º 1
0
 public Task <int> SaveItemAsync(TolendItem item)
 {
     if (item.ID != 0)
     {
         return(database.UpdateAsync(item));
     }
     else
     {
         return(database.InsertAsync(item));
     }
 }
Exemplo n.º 2
0
 public TLModifyViewModel()
 {
     tolendItem = new TolendItem()
     {
     };
 }
Exemplo n.º 3
0
 public TLItemViewModel()
 {
     tolendItem = new TolendItem()
     {
     };
 }
Exemplo n.º 4
0
 public Task <int> DeleteItemAsync(TolendItem item)
 {
     return(database.DeleteAsync(item));
 }