Ejemplo n.º 1
0
        public IActionResult Get(Guid id)
        {
            var building = _repository.FindByIdWithAssociations(id);

            if (building != null)
            {
                return(Ok(_mapper.Map <BuildingWithDetailsReadDto>(building)));
            }
            else
            {
                return(NotFound());
            }
        }