public IHttpActionResult Get(int Id) { RentService rentService = CreateRentService(); var rentProperty = rentService.GetRentById(Id); return(Ok(rentProperty)); }