Exemplo n.º 1
0
        public SingleApiResponse SetDisable(UserSetDisableRequest req)
        {
            var user = RepoBase.Instance.GetWhere <SS_USER>(x => x.U_ID == req.U_ID).FirstOrDefault();

            if (user == null)
            {
                return new SingleApiResponse()
                       {
                           BizErrorMsg = "无此用户", ErrCode = 1001
                       }
            }
            ;
            user.U_DISABLED = req.U_DISABLED;
            RepoBase.Instance.Update(user);
            return(new SingleApiResponse());
        }
Exemplo n.º 2
0
 public SingleApiResponse SetDisable([FromBody] UserSetDisableRequest req)
 {
     return(UserBiz.SetDisable(req));
 }