예제 #1
0
        public ActionResult <ShelterModel> GetShelterDetails([FromQuery] int shelterId)
        {
            var result = _shelterRepository.GetShelterDetails(shelterId);

            if (result.IsError)
            {
                return(BadRequest(result.Message));
            }

            return(Ok(result.Data));
        }