Example #1
0
        // GET: api/Beds/5
        public IHttpActionResult GetBed(int id)
        {
            var result = _service.GetBed(id);

            if (result == null)
            {
                return(BadRequest("Not found."));
            }
            var response = _mapper.MapBedToBasicBed(result);

            return(Ok(response));
        }
Example #2
0
        public IHttpActionResult Get(int bedID)
        {
            var response = service.GetBed(bedID);

            return(Ok(response));
        }