Пример #1
0
 public Task <bool> updateInfo(VueSubmitUserInfo submitData)
 {
     return(base.UpdatePart_NoObj(a =>
                                  new EUserInfo
     {
         NickName = submitData.nickName,
         Sex = Convert.ToInt32(submitData.sex)
     },
                                  a => a.Id == submitData.userId));
 }
Пример #2
0
 public void updateInfo(VueSubmitUserInfo submitData)
 {
     if (string.IsNullOrEmpty(submitData.userId))
     {
         throw new Exception("非法操作!");
     }
     if (string.IsNullOrEmpty(submitData.nickName))
     {
         throw new Exception("昵称不能为空!");
     }
     _userDb.updateInfo(submitData);
 }
Пример #3
0
        public ResultNormal UploadInfo(VueSubmitUserInfo submitData)
        {
            ResultNormal result = new ResultNormal();

            try
            {
                submitData.userId = this.getUserId();
                _userServices.updateInfo(submitData);
            }
            catch (Exception ex)
            {
                result.ErrorMsg = ex.Message;
            }
            return(result);
        }