public IList <AppointmentResult> Get(ApiHeader apiHeader, string hospitalId, string doctorId, string status, long?startDate, long?endDate, int start, int lenght, string keyword, bool searchExactly, SortField orderBy, SortType sortType) { var url = ApiUrl.Default.RootApi + string.Format(ApiUrl.Default.ListAppointment, hospitalId, doctorId, status, startDate, endDate, start, lenght, keyword, searchExactly, orderBy.DescriptionAttr(), sortType.DescriptionAttr()); var data = Restful.Get(url, apiHeader); _total = data["total"].ToObject <int>(); return(data.GetList <AppointmentResult>(ApiKeyData.ListAppointment)); }