/// <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(); } }
//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); }
//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); }
/// <summary> /// Initializes a new instance of the <see cref="ActiveDirectoryController"/> class. /// AccountController. /// </summary> public ActiveDirectoryController() { this.commonBL = new CommonBL(); this.userDataBL = new UserDataBL(); }
/// <summary> /// Initializes a new instance of the <see cref="AccountController"/> class. /// AccountController. /// </summary> public AccountController() { this.commonBL = new CommonBL(); this.userDataBL = new UserDataBL(); }