Пример #1
0
        public ActionResult <Guid> Post([FromBody] Client client)
        {
            try
            {
                Guid key = _clientServices.ChangeClient(client);

                if (client.Invalid)
                {
                    return(BadRequest(new { notifications = client.GetNotification() }));
                }

                return(Ok(new { key = key }));
            }
            catch (Exception exception)
            {
                _logger.LogError(exception, exception.Message);
                return(new StatusCodeResult(500));
            }
        }