예제 #1
0
        public int Put(int id, [FromBody] User user)
        {
            try
            {
                if (_logger.IsTraceEnabled)
                {
                    _logger.Trace("User/Put - {0}", JsonConvert.SerializeObject(user));
                }

                return(_userAppService.Edit(id, user));
            }
            catch (Exception ex)
            {
                _logger.Error(ex, String.Format("ERROR: User/Put id:{0} user: {1}", id, JsonConvert.SerializeObject(user)));
                throw;
            }
        }