public ApllicantStatusEntity GetOtherStatusReport(ApllicantStatusEntity apsten) { apsten.AcademicStatus = Mapper.Map <object, List <AcademicStatus> >(accountDal.GetAcademicReport(apsten.ApplicantDetail.Id)); apsten.LicenseStatus = Mapper.Map <object, List <LicenseStatus> >(accountDal.GetLicenseReport(apsten.ApplicantDetail.Id)); apsten.WorkExpStatus = Mapper.Map <object, List <WorkExpStatus> >(accountDal.GetWorkExpReport(apsten.ApplicantDetail.Id)); apsten.CogsStatus = Mapper.Map <object, List <CogsStatus> >(accountDal.GetCogsReport(apsten.ApplicantDetail.Id)); apsten.LogbookStatus = Mapper.Map <object, List <LogbookStatus> >(accountDal.GetLogbookReport(apsten.ApplicantDetail.Id)); return(apsten); }
public HttpResponseMessage GetApplicantRefDob(string refNo, DateTime dob) { ApllicantStatusEntity apsten = null; var result = accountDal.GetApplicantRefDob(refNo, dob); if (result != null) { apsten = new ApllicantStatusEntity(); apsten.ApplicantDetail = result; if (apsten.ApplicantDetail.IsPaymentDone == true) { apsten = GetOtherStatusReport(apsten); } } return(Request.CreateResponse(apsten)); }