public async Task <HttpResponseMessage> AddSpecialTest(PatientSpecialTest inputmodel) { string data = string.Empty; try { ApiResponseModel <string> model = new ApiResponseModel <string>() { }; var client = ServiceFactory.GetService(typeof(PatientSpecialTest)); 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> updatePatientSpecialTest(PatientSpecialTest patientSpecialTest) { //string data = string.Empty; bool data = false; try { ApiResponseModel <bool> model = new ApiResponseModel <bool>() { }; var client = ServiceFactory.GetService(typeof(PatientSpecialTest)); data = await client.updatePatientOrder(patientSpecialTest); model.data.records = data; return(Response.Success <bool>(model)); } catch (Exception ex) { return(Response.Exception(ex)); } }