/// <summary> /// 删除一个用户 /// </summary> /// <param name="userId"></param> /// <returns></returns> public int Delete(int userId) { sus.Delete(userId); int result = sus.SaveChanges(); if (result == 1) { return(1); } else { return(0); } }
public ActionResult DeleteAccount(int id) { bool result = userService.Delete(id); if (result == true) { TempData["Message"] = "ສຳເລັດ"; return(RedirectToAction("Accounts", "Admin")); } else { TempData["Message"] = "ບໍ່ສຳເລັດ"; return(RedirectToAction("Accounts", "Admin")); } }
public IActionResult Del(long id) { var ro = systemUserBusiness.Delete(id); return(Json(ro)); }
public ActionResult DeleteAccount(int id) { bool result = userService.Delete(id); return(RedirectToAction("Accounts", "AdminAccount")); }
public async Task Delete([FromUri] Guid id) { await _systemUserService.Delete(id); }