public string GetApointmentTypeCombo() { var result = new DataServiceResult <List <AppointmentType> >(); try { var data = siterepo.GetApintMentTypeCombo(); if (data != null) { result.Success = true; result.Value = data; } } catch (Exception ex) { result.Success = false; result.ExceptionInfo = new ExceptionInfo(ex); } return(JsonConvert.SerializeObject(result)); }