Ejemplo n.º 1
0
        async public Task <object> deleteUser([FromRoute] string email)
        {
            try {
                await AuthModel.removeUser(email);

                return(Ok(new { message = "User removed" }));
            } catch (System.Exception) {
                return(NotFound(new { error = "User not found" }));
            }
        }