Beispiel #1
0
        public bool RemoveVinyl(VinylDTO vinylToRemove)
        {
            bool retVal = false;

            try
            {
                retVal = vinylsDataBase.Remove(vinylToRemove.ID);
            }
            catch
            {
                return(false);
            }

            OnRefreshVinyls?.Invoke();
            return(retVal);
        }
Beispiel #2
0
 public bool AddVinyl(VinylDTO newVinyl)
 {
     vinylsDataBase.Add(DTOMapper.Map(newVinyl));
     OnRefreshVinyls?.Invoke();
     return(true);
 }
Beispiel #3
0
 public void VinylsChangedInvoke()
 {
     OnRefreshVinyls?.Invoke();
 }