public PersonalInfoDAL() { personalInfoModel = new PersonalInfoModel(); _dataContext = new MDKDBMLDataContext(); tPersonalInfoData = new TPersonalInfoData(); personalInfoEntity = new PersonInfo(); clients = new TClientInfo(); clientModel = new ClientInfoModel(); }
public TPersonalInfoData createBusinessPerson(string data) { try { personalInfoList = _serializer.Deserialize<List<PersonalInfoModel>>(data); tPersonalInfoData = personalInfoBAL.createBusinessPerson(personalInfoList); return tPersonalInfoData; } catch (Exception exp) { tPersonalInfoData.ErrorCode = ErrorCodes.SERVICE_ERROR; tPersonalInfoData.ErrorMessage = exp.StackTrace; return tPersonalInfoData; } }
public TPersonalInfoData createBusinessPerson(List<PersonalInfoModel> data) { try { tPersonalInfoData = personalInfoDAL.createBusinessPerson(data); tPersonalInfoData.tPersonalInfoData = new PersonalInfoModel(); tPersonalInfoData.SuccessCode = SuccessCodes.RECORD_SAVED_SUCCESSFULLY; tPersonalInfoData.SuccessMessage = SuccessMessages.RECORD_SAVED_SUCCESSFULLY_MSG; return tPersonalInfoData; } catch (Exception exp) { tPersonalInfoData.ErrorCode = ErrorCodes.BUSINESS_LOGIC_ERROR; tPersonalInfoData.ErrorMessage = exp.StackTrace; return tPersonalInfoData; } }
public BusinessServices() { _serializer = new JavaScriptSerializer(); personalInfoList = new List<PersonalInfoModel>(); personalInfoBAL = new PersonalInfoBAL(); tPersonalInfoData = new TPersonalInfoData(); tBankData = new TBankData(); lineDetailsBAL = new LineDetailsBAL(); bankBAL = new BankBAL(); tITInfoData = new TITInfoData(); iTInfoBAL = new ITInfoBAL(); tOtherInfoData = new TOtherInfoData(); otherInfoBAL = new OtherInfoBAL(); tClientInfoData = new TClientInfo(); clientInfoBAL = new ClientInfoBAL(); }
public PersonalInfoDAL() { personalInfoModel = new PersonalInfoModel(); _dataContext = new MDKDBMLDataContext(); tPersonalInfoData = new TPersonalInfoData(); }
public PersonalInfoBAL() { personalInfoDAL = new PersonalInfoDAL(); tPersonalInfoData = new TPersonalInfoData(); }