Ejemplo n.º 1
0
        public ActionResult GetUserById(int userId)
        {
            WIS.Entities.Account users = _accountBo.GetById(userId);
            if (users != null)
            {
                UsersModel modelCms = new UsersModel(users);
                modelCms.Password = Crypton.Decrypt(modelCms.Password);
                Msg.Obj           = modelCms;
            }

            return(AuthorizeJson(Msg));
        }
Ejemplo n.º 2
0
        public ActionResult GetUserById(int userId)
        {
            ResponseData responseData = new ResponseData();

            WIS.Entities.Account users = _accountBo.GetById(userId);
            if (users != null)
            {
                UsersModel modelCms = new UsersModel(users);
                modelCms.Password    = Crypton.Decrypt(modelCms.Password);
                responseData.Data    = modelCms;
                responseData.Success = true;
                responseData.Message = StringUtils.GetEnumDescription(ErrorCodes.Success);
            }

            return(Json(responseData));
        }