public IActionResult SetKey([FromBody] SetKeyRequest request)
        {
            _log.Info("Request for set encryption key", context: Request.HttpContext.GetIp());

            try
            {
                _serializer.SetKey(Convert.FromBase64String(request.Key));
                return(Ok());
            }
            catch (Exception e) when(e is ArgumentException ||
                                     e is InvalidOperationException ||
                                     e is FormatException)
            {
                throw new ValidationApiException(HttpStatusCode.BadRequest, e.Message);
            }
        }
        public void SetKey()
        {
            var request = new SetKeyRequest(GeneralRequests.SetKey);

            request.Parse();
        }