Exemplo n.º 1
0
        public void Update(Action<UserDto, Exception> action, UserDto ent)
        {
            var url = string.Format(userAddressFormatString, ent.Id);

            WebClientHelper.Put<UserDto, UserDto>(new Uri(url, UriKind.Absolute),
                                                                          (res, exp) => action(res, exp), ent,
                                                                          WebClientHelper.MessageFormat.Json,ApiConfig.Headers);
        }
Exemplo n.º 2
0
 public void AddUser(Action<UserDto, Exception> action, UserDto userDto)
 {
     var url = string.Format(baseAddressUsers);
     WebClientHelper.Post(new Uri(url, UriKind.Absolute), action, userDto, MITD.Presentation.WebClientHelper.MessageFormat.Json, ApiConfig.CreateHeaderDic(userProvider.Token));
 }
Exemplo n.º 3
0
 public void Delete(UserDto data)
 {
     throw new NotImplementedException();
 }