public async Task <HttpResponseMessage> AddPatientTherapies(PatientTherapy inputmodel) { string data = string.Empty; try { ApiResponseModel <string> model = new ApiResponseModel <string>() { }; var client = ServiceFactory.GetService(typeof(PatientTherapy)); data = await client.addPatientOrder(inputmodel); model.data.records = data; return(Response.Success <string>(model)); } catch (Exception ex) { return(Response.Exception(ex)); } }
public async Task <HttpResponseMessage> updatePatientTherapy(PatientTherapy patientTherapy) { //string data = string.Empty; bool data = false; try { ApiResponseModel <bool> model = new ApiResponseModel <bool>() { }; var client = ServiceFactory.GetService(typeof(PatientTherapy)); data = await client.updatePatientOrder(patientTherapy); model.data.records = data; return(Response.Success <bool>(model)); } catch (Exception ex) { return(Response.Exception(ex)); } }