Пример #1
0
 public void DeleteForm(UserDeleteInputDto dto)
 {
     if (!string.IsNullOrEmpty(dto.Id))
     {
         _sysUserRepository.Delete(dto.Id);
     }
 }
Пример #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            sysuserRepository.Delete(id);
            sysuserRepository.Save();

            return(RedirectToAction("Index"));
        }
Пример #3
0
 /// <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));
 }