public void DeleteForm(UserDeleteInputDto dto) { if (!string.IsNullOrEmpty(dto.Id)) { _sysUserRepository.Delete(dto.Id); } }
public ActionResult DeleteConfirmed(int id) { sysuserRepository.Delete(id); sysuserRepository.Save(); return(RedirectToAction("Index")); }
/// <summary> /// 删除系统用户 /// </summary> /// <param name="moduleInfo"></param> /// <returns></returns> public bool DeleteSysUser(SysUserInfo sysUserInfo) { return(_sysUserRepository.Delete(sysUserInfo) > 0); }
public int DeleteUser(SysUser user) { return(userDao.Delete(user)); }