Ejemplo n.º 1
0
 public bool SaveWorkAddress(long userID, string address)
 {
     if (string.IsNullOrEmpty(address))
     {
         throw new UnProcessableException("地址不能为空!");
     }
     return(_userDapper.SaveWorkAddress(userID, address));
 }
Ejemplo n.º 2
0
        public bool SaveWorkAddress(long userID, string address)
        {
            if (string.IsNullOrEmpty(address))
            {
                throw new UnProcessableException("地址不能为空!");
            }
            var success = _userDapper.SaveWorkAddress(userID, address);

            RefreshUserCache(userID);
            return(success);
        }