Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// UserController
 /// </summary>
 public UserController()
 {
     if (this.userDataBL == null)
     {
         this.userDataBL = new UserDataBL();
         this.commonBL   = new CommonBL();
         this.masterBL   = new MasterDataBL();
     }
 }
Пример #2
0
        //public static string MudraUserDetails(string name, string mobile, string BusinessPurpose, string loantype, string amount)
        public static string CheckDuplicate(string MobileNo)
        {
            UserShema  objUserShema  = new UserShema();
            UserDataBL objUserDataBL = new UserDataBL();
            string     mudraresult   = string.Empty;
            int        result        = 0;

            objUserShema.Mobile = MobileNo;
            result = objUserDataBL.CheckDuplicate(objUserShema);
            if (result > 0)
            {
                mudraresult = "success";
            }
            else
            {
                mudraresult = "Failed";
            }
            return(mudraresult);
        }
Пример #3
0
        //public static string MudraUserDetails(string name, string mobile, string BusinessPurpose, string loantype, string amount)
        public static string MudraUserDetails(string name, string mobile, string BusinessPurpose, string Email)
        {
            UserShema  objUserShema  = new UserShema();
            UserDataBL objUserDataBL = new UserDataBL();
            string     mudraresult   = string.Empty;
            int        result        = 0;
            SendSMS    objSendSMS    = new SendSMS();
            int        LangID        = 0;

            objUserShema.Name   = name;
            objUserShema.Mobile = mobile;
            //if (!string.IsNullOrEmpty(amount))
            //{
            //    objUserShema.Amount = Convert.ToDecimal(amount);
            //}
            //else
            //{
            //    objUserShema.Amount = 0;
            //}

            //objUserShema.Loantype = Convert.ToInt32(loantype);
            objUserShema.Email               = Email;
            objUserShema.Buspurpose          = Convert.ToInt32(BusinessPurpose);
            objUserShema.Applicant_SessionId = System.Web.HttpContext.Current.Session.SessionID;
            result = objUserDataBL.insertUserData(objUserShema);
            if (result == 1)
            {
                mudraresult = "success";
                if (objUserShema.Mobile.ToString() != "" || objUserShema.Mobile.ToString() != string.Empty)
                {
                    objSendSMS.SMSSend(objUserShema.Mobile, "", "welcome");
                }
                if (objUserShema.Email.ToString() != "" || objUserShema.Email.ToString() != string.Empty)
                {
                    SendEamil(objUserShema.Email.ToString());
                }
            }
            else
            {
                mudraresult = "Failed";
            }
            return(mudraresult);
        }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActiveDirectoryController"/> class.
 /// AccountController.
 /// </summary>
 public ActiveDirectoryController()
 {
     this.commonBL   = new CommonBL();
     this.userDataBL = new UserDataBL();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// AccountController.
 /// </summary>
 public AccountController()
 {
     this.commonBL   = new CommonBL();
     this.userDataBL = new UserDataBL();
 }