コード例 #1
0
        public User GetUserByToken(User model)
        {
            User result = new User();

            try
            {
                if (string.IsNullOrEmpty(model.UserToken))
                {
                    throw new Exception("User token can't be empty!");
                }
                result = _userAccess.GetUserByToken(model);
            }
            catch (Exception)
            {
                throw new Exception("ERROR");
            }
            return(result);
        }