Exemplo n.º 1
0
        public Ownership GetById(int OwnershipId)
        {
            var Ownership = OwnershipRepository.GetById(OwnershipId);

            if (Ownership == null)
            {
                throw new BadRequestException(ErrorMessages.PropiedadNoEncontrada);
            }

            return(Ownership);
        }
Exemplo n.º 2
0
        public void DeleteOwnership(int OwnershipId)
        {
            var Ownership = OwnershipRepository.GetById(OwnershipId);

            OwnershipRepository.Delete(Ownership);
        }