Пример #1
0
        public bool RemoveVinyl(VinylDTO vinylToRemove)
        {
            bool retVal = false;

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

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