Beispiel #1
0
        public static ReturnResult AddUser(User user)
        {
            try
            {
                ReturnResult rr = new ReturnResult();
                user.password = SHA1.Encode(user.password);

                rr.data       = OCRC.AddUser(user);
                rr.returnCode = 0;
                return(rr);
            }
            catch (Exception e)
            {
                return(new ReturnResult(ReturnCode.FAILURE, e.Message));
            }
        }