Exemplo n.º 1
0
        public async Task <bool> Register(LoginModelCreate newUser)
        {
            var request = new HttpRequestMessage(HttpMethod.Put
                                                 , Endpoints.RegisterUserEndpoint);

            request.Content = new StringContent(JsonConvert.SerializeObject(newUser)
                                                , Encoding.UTF8, "application/json");

            var client = this.client.CreateClient();
            HttpResponseMessage response = await client.SendAsync(request);

            return(response.IsSuccessStatusCode);
        }
Exemplo n.º 2
0
 public Task <string> CreateObjectAndReturnId(string url, LoginModelCreate obj)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public Task <LoginModelCreate> CreateObject(string url, LoginModelCreate obj)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public Task <bool> Update(string url, LoginModelCreate obj)
 {
     throw new NotImplementedException();
 }