public ProfileMotherDetails RetrieveMother(FetchMotherRequest fmData) { string stProc = FetchParticularMotherProfile; var pList = new List <SqlParameter>() { new SqlParameter("@HospitalId", fmData.hospitalId), new SqlParameter("@MothersRchSubHospID", fmData.motherInput ?? fmData.motherInput), }; var motherDetail = UtilityDL.FillData <MotherProfile>(stProc, pList); var babyDetail = UtilityDL.FillData <MotherBabiesDetail>(stProc, pList); var mother = new ProfileMotherDetails(); mother.motherDetail = motherDetail; mother.babyDetail = babyDetail; return(mother); }
public ProfileMotherDetails RetrieveAllMother(FetchAllMotherRequest fmData) { string stProc = FetchAllMotherProfiles; var pList = new List <SqlParameter>() { new SqlParameter("@HospitalId", fmData.hospitalId), new SqlParameter("@FromDate", fmData.fromDate.ToCheckNull()), new SqlParameter("@toDate", fmData.toDate.ToCheckNull()), }; var motherDetail = UtilityDL.FillData <MotherProfile>(stProc, pList); var babyDetail = UtilityDL.FillData <MotherBabiesDetail>(stProc, pList); var mother = new ProfileMotherDetails(); mother.motherDetail = motherDetail; mother.babyDetail = babyDetail; return(mother); }