public async Task <IActionResult> Get([FromRoute] int id)
        {
            var response = await _invitationService.GetAsync(id);

            if (!response.IsValid)
            {
                return(BadRequest(response.Message));
            }
            return(Ok(response));
        }
Пример #2
0
        public async Task StartAsync(CancellationToken cancellationToken)
        {
            try
            {
                var document = await _documentService.GetAsync("e59c8dc8-8848-4936-ac7c-50d9ed72085a");

                var documentLocation = await _documentService.PostAsync(new Document { Name = "New document" });

                var invitation = await _invitationService.GetAsync("2076243e-351d-4b29-86ad-c2b02d7f867d");

                var organization = await _organizationService.GetAsync("7d2ad74a-8672-414c-b570-f261f638b622");
            }
            catch (HttpRequestException ex)
            {
                Console.WriteLine(ex);
            }
        }