public HttpResponseMessage RentEnd(int rid) { try { Rent rent = Rent.GetSpecificRent(rid); rent.Endrent(); return(new HttpResponseMessage(HttpStatusCode.OK)); } catch (Exception ex) { WriteLog(ex.Message); return(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }