Esempio 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);
        }
Esempio 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));
 }
Esempio n. 3
0
 public void Delete(UserDto data)
 {
     throw new NotImplementedException();
 }