Пример #1
0
        public async Task <IActionResult> DeleteUser(int id)
        {
            try
            {
                await SetAuthenticatedUser();

                var newUser = await _userFacade.DeleteUserAsync(id);

                return(new JsonResult(newUser));
            }
            catch (Exception e)
            {
                return(StatusCode(500, e));
            }
        }