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)); }
public IResult Delete(Shelf shelf) { _shelfDal.Delete(shelf); return(new SuccessResult(Messages.ShelfDeleted)); }