コード例 #1
0
 /// <summary>
 /// Creates a new client application.
 /// </summary>
 /// <param name="request">The request containing the properties of the new client.</param>
 /// <returns>Task&lt;Core.Client&gt;.</returns>
 public Task <Core.Client> CreateAsync(ClientCreateRequest request)
 {
     return(Connection.PostAsync <Core.Client>("clients", request, null, null, null, null, null));
 }
コード例 #2
0
        public void Create(ClientCreateRequest request)
        {
            var client = new Clients(request.Name, request.CPF, request.Hashs);

            _clientRepository.Create(client);
        }
コード例 #3
0
 public Task <Core.Client> Create(ClientCreateRequest request)
 {
     return(CreateAsync(request));
 }