Esempio n. 1
0
        public responseCls signUpForm(signUps expositions)
        {
            customer app = new customer();

            app.Id       = entities.customers.Count() + 1;
            app.fname    = expositions.fname;
            app.lname    = expositions.lname;
            app.phone    = expositions.phone;
            app.gender   = expositions.gender;
            app.email    = expositions.email;
            app.fax      = expositions.fax;
            app.password = expositions.password;

            entities.customers.Add(app);

            Login log = new Login();

            log.Id       = entities.Logins.Count() + 1;
            log.custID   = (entities.customers.Count() + 1).ToString();
            log.userName = expositions.email;
            log.password = expositions.password;

            entities.Logins.Add(log);

            entities.SaveChanges();

            responseCls res = new responseCls();

            res.status  = 400;
            res.success = "successfully sign up";

            return(res);
        }
Esempio n. 2
0
        public responseCls signUpFormOption(signUps expositions)
        {
            responseCls res = new responseCls();

            res.status  = 400;
            res.success = "successfully sign up";

            return(res);
        }