private void Get_User(string MobileNo)
        {
            ForgotPassword_ViewModel obj_ForgotPasswordVM            = new ForgotPassword_ViewModel();
            List <KeyValuePair <string, string> > getByID_Parameters = new List <KeyValuePair <string, string> >();

            getByID_Parameters.Add(new KeyValuePair <string, string>("@MobileNo", Convert.ToString(MobileNo)));
            _customer = JsonConvert.DeserializeObject <CustomerMaster_DataModel>(obj_ForgotPasswordDAL.GetCustomerByEmail(getByID_Parameters));
        }
 public CustomerMaster_ViewModel()
 {
     customerMaster            = new CustomerMaster_DataModel();
     customerAddressMaster     = new CustomerAddressMaster_DataModel();
     lst_customerMaster        = new List <CustomerMaster_DataModel>();
     lst_customerAddressMaster = new List <CustomerAddressMaster_DataModel>();
     lst_country = new List <Country_DataModel>();
     lst_order   = new List <OrderMaster>();
 }
Beispiel #3
0
        public CustomerMaster_DataModel GetCustomerMasterDataById(int Id)
        {
            CustomerMaster_DataModel customermaster = new CustomerMaster_DataModel();
            List <KeyValuePair <string, string> > getByID_Parameters = new List <KeyValuePair <string, string> >();

            getByID_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(Id)));
            customermaster = JsonConvert.DeserializeObject <CustomerMaster_DataModel>(CustomerMaster.GetByID(getByID_Parameters));
            return(customermaster);
        }
Beispiel #4
0
        public string Change_Password(CustomerMaster_DataModel customermaster_DataModel)
        {
            string result;
            List <KeyValuePair <string, string> > insert_Parameters = new List <KeyValuePair <string, string> >();

            insert_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(customermaster_DataModel.Id)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Password", Convert.ToString(customermaster_DataModel.Password)));
            result = CustomerMaster.Change_Password(insert_Parameters);
            return(result);
        }
Beispiel #5
0
        public string Insert_Data(CustomerMaster_DataModel customermaster_DataModel)
        {
            string result = "";
            List <KeyValuePair <string, string> > insert_Parameters = new List <KeyValuePair <string, string> >();

            insert_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(customermaster_DataModel.Id)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@First_Name", Convert.ToString(customermaster_DataModel.First_Name)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Second_Name", Convert.ToString(customermaster_DataModel.Second_Name)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Middle_Name", Convert.ToString(customermaster_DataModel.Middle_Name)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Mobile_Number", Convert.ToString(customermaster_DataModel.Mobile_Number)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Email", Convert.ToString(customermaster_DataModel.Email)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Password", Convert.ToString(customermaster_DataModel.Password)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@IsActive", Convert.ToString(customermaster_DataModel.IsActive)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@ProfilePicture", Convert.ToString(customermaster_DataModel.ProfilePicture)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Gender", Convert.ToString(customermaster_DataModel.Gender)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@DOB", Convert.ToString(customermaster_DataModel.DOB)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Mobile_Verified", Convert.ToString(customermaster_DataModel.Mobile_Verified)));
            result = CustomerMaster.Insert(insert_Parameters);
            return(result);
        }
        public ForgotPassword_ViewModel()
        {
            forgotPassword = new ForgotPassword_DataModel();

            customer = new CustomerMaster_DataModel();
        }