public static async Task<LG.Data.Models.Doctors.SearchResults> Search() { var entity = new LG.Data.Models.Doctors.Search() { Request = new LG.Services.MPMS.GetMedicalPractitionersRequest() { IsActiveMedicalPractitionerFilter = IsActiveFilterEnum.All, IsExpiredLicenseFilter = IsExpiredFilterEnum.All, IsTestingMedicalPractitionerFilter = IsTestingFilterEnum.All, IsVoidLicenseFilter = IsVoidFilterEnum.All, MSPRID =100 } }; return await LG.Data.Core.Doctors.DoctorDataService.Search(entity); }
public static async Task <LG.Data.Models.Doctors.SearchResults> Search() { var entity = new LG.Data.Models.Doctors.Search() { Request = new LG.Services.MPMS.GetMedicalPractitionersRequest() { IsActiveMedicalPractitionerFilter = IsActiveFilterEnum.All, IsExpiredLicenseFilter = IsExpiredFilterEnum.All, IsTestingMedicalPractitionerFilter = IsTestingFilterEnum.All, IsVoidLicenseFilter = IsVoidFilterEnum.All, MSPRID = 100 } }; return(await LG.Data.Core.Doctors.DoctorDataService.Search(entity)); }
public static async Task <LG.Data.Models.Doctors.SearchResults> Search( LG.Data.Models.Doctors.Search entity) { var result = new LG.Data.Models.Doctors.SearchResults(); var client = LG.Services.ClientConnection.GetMpmsConnection(); try { client.Open(); entity.Request.MessageGuid = entity.MessageGuid; var response = await client.GetMedicalPractitionersAsync(entity.Request); client.Close(); result.Results = response.ListOfMedicalPractitionerInfo; result.IsError = false; result.Message = "Success"; } catch (Exception ex) { result.IsError = true; result.Message = ex.ToString(); } return(result); }