Example #1
0
        public PersonalInfoDAL()
        {
            personalInfoModel = new PersonalInfoModel();
            _dataContext = new MDKDBMLDataContext();
            tPersonalInfoData = new TPersonalInfoData();
            personalInfoEntity = new PersonInfo();

            clients = new TClientInfo();
            clientModel = new ClientInfoModel();
        }
Example #2
0
        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;
            }
        }
Example #3
0
        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;
            }

        }
Example #4
0
        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();
 
        }
Example #5
0
 public PersonalInfoDAL()
 {
     personalInfoModel = new PersonalInfoModel();
     _dataContext = new MDKDBMLDataContext();
     tPersonalInfoData = new TPersonalInfoData();
 }
Example #6
0
 public PersonalInfoBAL()
 {
     personalInfoDAL = new PersonalInfoDAL();
     tPersonalInfoData = new TPersonalInfoData();
 }