예제 #1
0
        public async Task <IActionResult> DeleteUser(string email)
        {
            if (ModelState.IsValid)
            {
                return(Ok(await _accountServices.DeleteUser(email)));
            }

            return(NotFound());
        }
예제 #2
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     try
     {
         AccountServices.DeleteUser(id);
     }
     catch (OperationCanceledException ex)
     {
         ModelState.AddModelError("", ex.Message);
         return(View(AccountServices.FindUserByIdentity(id)));
     }
     return(RedirectToAction("Index"));
 }
예제 #3
0
 public void DeleteUser([FromUri] string userId)
 {
     _accountServices.DeleteUser(userId);
 }
 public Response DeleteUser(long userId)
 {
     _response = _acountServices.DeleteUser(userId);
     return(_response);
 }