Example #1
0
 public DataSet UserName(string struser)
 {
     DataSet list;
     UserModel model = new UserDal();
     DB_OPT dbo = new DB_OPT();
     try
     {
         dbo.Open();
         model.UserPK = struser;
         list = model.GetList(" UserPK='" + model.UserPK + "'", dbo);
     }
     catch (Exception exception)
     {
         throw exception;
     }
     finally
     {
         dbo.Close();
     }
     return list;
 }