Ejemplo n.º 1
0
 public Member UsrInfo(string us)
 {
     try
     {
         SqlFuns sf = new SqlFuns();
         return(sf.SearchMemberUSR(us));
     }
     catch
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Login the System
 /// </summary>
 /// <param name="us">User's Information, must include username and password</param>
 /// <returns>username</returns>
 public Member UserLogin(string us, string pwd)
 {
     try
     {
         SqlFuns sf  = new SqlFuns();
         Member  tmp = sf.SearchMemberUSR(us);
         if (tmp.Pwd == pwd)
         {
             tmp.Pwd = "";
             return(tmp);
         }
         else
         {
             return(null);
         }
     }
     catch
     {
         return(null);
     }
 }