public async Task <IActionResult> PostIdentityDbAsync([FromBody] PostIdentityRequest request)
        {
            HttpContext.AddEvent(Event.CreatePostIdentityDb(new object[1] {
                request
            }));
            var identity = new Identity(request.IdentityName);

            identity.SetPassword(request.Password, _config);
            await _identityAsyncDAO.InsertAsync(identity).ConfigureAwait(false);

            return(StatusCode(201));
        }
        public IActionResult PostIdentityMemory([FromBody] PostIdentityRequest request)
        {
            HttpContext.AddEvent(Event.CreatePostIdentityMemory(new object[1] {
                request
            }));
            var identity = new Identity(request.IdentityName);

            identity.SetPassword(request.Password, _config);
            _identityDAO.Insert(identity);

            return(StatusCode(201));
        }