public string GetUserDetails(string id)
        {
            string         query     = @"select * from User_Login_Details where Login_Id='" + id + "'";
            Login_Register insLogReg = new Login_Register();

            return(insLogReg.getUserDetailsToVerify(query));
        }
        public string GetUserDetails()
        {
            string         query     = "select Email_Id, Full_Name, Login_Id, Mobile_No from User_Login_Details";
            Login_Register insLogReg = new Login_Register();

            return(insLogReg.getUserDetailsToVerify(query));
        }
        public HttpStatusCode Post([FromBody] Login_Register value)
        {
            Login_Register insLogReg = new Login_Register();
            int            IsSuccess = insLogReg.RegisterUserAllowLogin(value);

            if (IsSuccess == 1)
            {
                return(HttpStatusCode.Created);
            }
            else
            {
                return(HttpStatusCode.BadRequest);
            }
        }
        public ActionResult register_user(string name, string telefono, string email, string username, string pass)
        {
            Login_Register oRegister = new Login_Register();
            oRegister.name = name;
            oRegister.telefono = telefono;
            oRegister.email = email;
            oRegister.username = username;
            oRegister.pass = pass;

            if (ModelState.IsValid)
            {
                db.oLogin_Register.Add(oRegister);
                db.SaveChanges();

            }
            return Json(new { value = "true" }); ;
        }
        public ActionResult register_user(string name, string telefono, string email, string username, string pass)
        {
            Login_Register oRegister = new Login_Register();

            oRegister.name     = name;
            oRegister.telefono = telefono;
            oRegister.email    = email;
            oRegister.username = username;
            oRegister.pass     = pass;

            if (ModelState.IsValid)
            {
                db.oLogin_Register.Add(oRegister);
                db.SaveChanges();
            }
            return(Json(new { value = "true" }));;
        }
Example #6
0
 void Awake()
 {
     instance = this;
 }