Exemplo n.º 1
0
 public Task <int> SaveIndustryAsync(IndustryTable item)
 {
     if (item.ID != 0)
     {
         return(database.UpdateAsync(item));
     }
     else
     {
         return(database.InsertAsync(item));
     }
 }
Exemplo n.º 2
0
 public Task <int> DeleteIndustryTableAsync(IndustryTable item)
 {
     try { return(database.DeleteAsync(item)); }
     catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Error:{0}", ex.Message.ToString()); return(null); }
 }