Esempio n. 1
0
        public IActionResult DeleteUser(string uid)
        {
            var code = _manager.DeleteUser(uid);

            Log.Info($"{Request.Path} uid=[{uid}] => code=[{code}]");
            return(Ok(new { code }));
        }
        public async Task <IActionResult> DeleteUser(string id)
        {
            try
            {
                var results = await _adminManager.DeleteUser(id);

                return(Ok(results));
            }
            catch (Exception ex)
            {
                await new RaygunClient(_settings.ApiKey).SendInBackground(ex);
                return(BadRequest(new { error = ex.Message }));
            }
        }