using System; using System.Collections.Generic; using System.Linq; using System.Data.SqlClient; using System.Configuration; using System.Text; public class AdminBAL { public AdminBAL() { } private string _FirstName; public string FirstName { get { return _FirstName; } set { _FirstName = value; } } private string _LastName; public string LastName { get { return _LastName; } set { _LastName = value; } } private string _UserName; public string UserName { get { return _UserName; } set { _UserName = value; } } private string _CenterID; public string CenterID { get { return _CenterID; } set { _CenterID = value; } } private string _Password; public string Password { get { return _Password; } set { _Password = value; } } private string _EmailID; public string EmailID { get { return _EmailID; } set { _EmailID = value; } } private string _PhoneNo; public string PhoneNo { get { return _PhoneNo; } set { _PhoneNo = value; } } private string _Address; public string Address { get { return _Address; } set { _Address = value; } } public int InsertAgentDetails() { return AdminDAL.InsertAgentDetails(FirstName, LastName, CenterID, UserName, Password, EmailID, PhoneNo, Address); } public bool AdminLoginMethod(string username,string password) { try { return AdminDAL.AdminloginMethod(username, password); } catch (Exception ex) { throw ex; } } }