using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AgentBAL { public AgentBAL() { } private string _CenterID; public string CenterID { get { return _CenterID; } set { _CenterID = value; } } private string _AgentID; public string AgentID { get { return _AgentID; } set { _AgentID = value; } } public System.Data.DataSet GetCenterID() { return AgentDAL.GetCenterID(CenterID); } public System.Data.DataSet GetAgentID() { return AgentDAL.GetAgentID(AgentID); } private string _role; public string Role { get { return _role; } set { _role = value; } } private string _UserName; public string UserName { get { return _UserName; } set { _UserName = value; } } private string _Password; public string Password { get { return _Password; } set { _Password = value; } } //public bool AgentLoginMethod(string username,string password,string Role) //{ // try // { // return AgentDAL.AgentLoginMethod(username, password,Role); // } // catch (Exception ex) // { // throw ex; // } //} //public bool EmpLoginMethod(string p, string p_2) //{ // try // { // return AgentDAL.EmpLoginMethod(p, p_2); // } // catch (Exception ex) // { // throw ex; // } //} public System.Data.DataSet validateuser() { return AgentDAL.validateuser(UserName, Password,CenterID); } }