public DataTable GetProfile() { try { ProfileDAL objDal = new ProfileDAL(); return(objDal.ReadProfile()); } catch { throw; } }
public int GetProfile(string username, string password) { try { ProfileDAL objdal = new ProfileDAL(); return(objdal.ReadProfile(username, password)); } catch (Exception) { return(-1); //MessageBox.Show(ex.Message()); } }
public DataTable GetProfile() { ProfileDAL objDAL = new ProfileDAL(); return(objDAL.ReadProfile()); }