コード例 #1
0
        public int AddUser(BeAddUser a)
        {
            InsertUser obj   = new InsertUser();
            int        error = obj.Insert(a);

            return(error);
        }
コード例 #2
0
        public ContentResult SignUpUser(UserModel user)
        {
            if (ModelState.IsValid)
            {
                InsertUser.Insert(user);

                return(new ContentResult
                {
                    StatusCode = (int)HttpStatusCode.OK
                });
            }
            else
            {
                return(new ContentResult
                {
                    StatusCode = (int)HttpStatusCode.InternalServerError
                });
            }
        }