Example #1
0
        public IHttpActionResult Get(int id)
        {
            RenterService renterService = CreateRenterService();
            var           renter        = renterService.GetRenterById(id);

            return(Ok(renter));
        }
Example #2
0
        public IHttpActionResult Get([FromUri] int id)
        {
            var response = _service.GetRenterById(id);

            if (response == null)
            {
                return(NotFound());
            }
            return(Ok(response));
        }