Exemple #1
0
        public Plate Remove(RemovePlateCommand command)
        {
            var plate = _repository.GetById(command.PlateId, command.RestaurantId);

            if (plate == null)
            {
                return(null);
            }

            _repository.Remove(plate);

            if (Commit())
            {
                return(plate);
            }

            return(null);
        }