public Task <int> SaveItemAsync(BadgeSetting item) { if (item.ID != 0) { return(database.UpdateAsync(item)); } else { return(database.InsertAsync(item)); } }
public Task <int> DeleteItemAsync(BadgeSetting item) { return(database.DeleteAsync(item)); }