Example #1
0
 /// <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;
 }
Example #2
0
 public bool Update(Member member)
 {
     try
     {
         return _service.Update(member);
     }
     catch (Exception ex)
     {
         ex.WriterLog("TaskRelease.DAL", "MemberService", "Update");
         return false;
     }
 }
Example #3
0
 public bool Insert(Member member)
 {
     try
     {
         return _service.Insert(member);
     }
     catch (Exception ex)
     {
         ex.WriterLog("TaskRelease.DAL", "MemberService", "Insert");
         return false;
     }
 }
Example #4
0
 public bool Update(Member member)
 {
     return _service.Update(member);
 }
Example #5
0
 public bool Insert(Member member)
 {
     return _service.Insert(member);
 }