Ejemplo n.º 1
0
        public void Remove(int id)
        {
            var farm = _farmRepository.FindById(id);

            if (farm == null)
            {
                throw new Exception("Farm was not found");
            }

            _farmRepository.Remove(farm);
        }