public bool RemoveVinyl(VinylDTO vinylToRemove) { bool retVal = false; try { retVal = vinylsDataBase.Remove(vinylToRemove.ID); } catch { return(false); } OnRefreshVinyls?.Invoke(); return(retVal); }
public bool AddVinyl(VinylDTO newVinyl) { vinylsDataBase.Add(DTOMapper.Map(newVinyl)); OnRefreshVinyls?.Invoke(); return(true); }
public void VinylsChangedInvoke() { OnRefreshVinyls?.Invoke(); }