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