public ActionResult SaveClientDetail(int?id) { getNoOfReferralAccordingToProcessLevels(); PatientClientDetailViewModel objPatientClientDetailViewModel = new PatientClientDetailViewModel(); if (id != null) { var _ClientResult = _iClientService.getClientByID(id.Value); objPatientClientDetailViewModel.ClientDetail = Mapper.Map <Client>(_ClientResult); var _getClientInsurer = _iClientService.getClientInsurerByClientID(id.Value, 0, GlobalConst.Records.Take5); objPatientClientDetailViewModel.ClientInsurerDetails = Mapper.Map <IEnumerable <ClientInsurer> >(_getClientInsurer.ClientInsurerDetails); objPatientClientDetailViewModel.cinsTotalCount = _getClientInsurer.TotalCount; var _getClientEmployer = _iClientService.getClientEmployerByClientID(id.Value, 0, GlobalConst.Records.Take5); objPatientClientDetailViewModel.ClientEmployerDetails = Mapper.Map <IEnumerable <ClientEmployer> >(_getClientEmployer.ClientEmployerDetails); objPatientClientDetailViewModel.cEmpTotalCount = _getClientEmployer.TotalCount; var _getClientManagedCareCompany = _iClientService.getClientManagedCareCompanyByClientID(id.Value, 0, GlobalConst.Records.Take5); objPatientClientDetailViewModel.ClientManagedCareCompanyDetails = Mapper.Map <IEnumerable <ClientManagedCareCompany> >(_getClientManagedCareCompany.ClientManagedCareCompanyDetails); objPatientClientDetailViewModel.cMmcTotalCount = _getClientManagedCareCompany.TotalCount; var _getClientThirdPartyAdministrator = _iClientService.getClientThirdPartyAdministratorByClientID(id.Value, 0, GlobalConst.Records.Take5); objPatientClientDetailViewModel.ClientThirdPartyAdministratorDetails = Mapper.Map <IEnumerable <ClientThirdPartyAdministrator> >(_getClientThirdPartyAdministrator.ClientThirdPartyAdministratorDetails); objPatientClientDetailViewModel.cTpaTotalCount = _getClientThirdPartyAdministrator.TotalCount; var _getClaimAdministratorAllByClientID = _iClientService.getClaimAdministratorAllByClientID(id.Value); objPatientClientDetailViewModel.ClaimAdministratorAllByClientIDDetails = Mapper.Map <IEnumerable <ClaimAdministratorAllByClientID> >(_getClaimAdministratorAllByClientID); } return(View(objPatientClientDetailViewModel)); }
public JsonResult getMCCByClientId(int clientID) { ClientManagedCareCompany objClientMCC = new ClientManagedCareCompany(); var ClientMCC = _iClientService.getClientManagedCareCompanyByClientID(clientID, GlobalConst.Records.Skip, GlobalConst.Records.Take5); objClientMCC = Mapper.Map <ClientManagedCareCompany>(ClientMCC.ClientManagedCareCompanyDetails.FirstOrDefault()); return(Json(objClientMCC, GlobalConst.ContentTypes.TextHtml)); }