public IHttpActionResult Get(int id) { RenterService renterService = CreateRenterService(); var renter = renterService.GetRenterById(id); return(Ok(renter)); }
public IHttpActionResult Get([FromUri] int id) { var response = _service.GetRenterById(id); if (response == null) { return(NotFound()); } return(Ok(response)); }