Esempio n. 1
0
        public IResult Delete(Shelf shelf)
        {
            var result = _stockStoreDal.GetAll(s => s.ShelfId == shelf.Id);

            if (result.Count != 0)
            {
                return(new ErrorResult(Messages.ShelfDoesNotDeleted));
            }
            _shelfDal.Delete(shelf);
            return(new SuccessResult(Messages.DeletedShelf));
        }
Esempio n. 2
0
 public IResult Delete(Shelf shelf)
 {
     _shelfDal.Delete(shelf);
     return(new SuccessResult(Messages.ShelfDeleted));
 }