/// <summary> /// 用户登录 /// </summary> /// <param name="loginId"></param> /// <param name="pwd"></param> /// <param name="user"></param> /// <returns></returns> public UserLoginState UserLogin(string loginId, string pwd, out Member user) { var member = _service.UserLogin(loginId); if (member == null) { user = null; return UserLoginState.NoExist; } if (!member.Pwd.CompareNotIgnoreCase(pwd.ToMD5())) { user = null; return UserLoginState.PwdError; } user = member; return UserLoginState.Succeed; }
public bool Update(Member member) { try { return _service.Update(member); } catch (Exception ex) { ex.WriterLog("TaskRelease.DAL", "MemberService", "Update"); return false; } }
public bool Insert(Member member) { try { return _service.Insert(member); } catch (Exception ex) { ex.WriterLog("TaskRelease.DAL", "MemberService", "Insert"); return false; } }
public bool Update(Member member) { return _service.Update(member); }
public bool Insert(Member member) { return _service.Insert(member); }