示例#1
0
        public async Task <IHttpActionResult> RemoveUser([FromUri] string userEmail)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            bool isUserDeleted = await _manager.RemoveUserAsync(userEmail);

            if (!isUserDeleted)
            {
                return(BadRequest("An error has accured while attempting to update the user."));
            }
            return(Ok());
        }