Ejemplo n.º 1
0
        public Admin(IAdminDAL adminDAL)
        {
            this._adminDAL = adminDAL;

            Permissions = new List <string>();
            UserRole    = 1;
        }
        public int ChkLogInCredentials(ILogin objLogIn)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.ChkLogInCredentials(objLogIn));
        }
        public IEmployee GetEmployee(int employeeID)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetEmployee(employeeID));
        }
        public bool UpdateEmployee(IEmployee objEmployee)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.UpdateEmployee(objEmployee));
        }
        public bool UpdateEmployeeDetails(List <IEmployee> lstEmployee)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.UpdateEmployeeDetails(lstEmployee));
        }
        public bool AddEmployeeDetails(IEmployee objEmployee)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.AddEmployeeDetails(objEmployee));
        }
        public bool ValidateSecurity(int empid, string answer)
        {
            IAdminDAL objDAL = TCS.ISMS.DALFactory.AdminDALFactory.CreateAdminDALObject();

            return(objDAL.ValidateSecurity(empid, answer));
        }
        public IItem GetItemByItemId(int itemId)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetItemByItemId(itemId));
        }
Ejemplo n.º 9
0
 public AdminController(IAdminDAL _adminDal)
 {
     this.adminDal = _adminDal;
 }
Ejemplo n.º 10
0
 public AuthManager(IAdminDAL AdminDAL)
 {
     _AdminDAL = AdminDAL;
 }
Ejemplo n.º 11
0
 public AdminService(IAdminDAL repo)
 {
     _adminRepo = repo;
 }
Ejemplo n.º 12
0
 public AdminBLL(IAdminDAL stub)
 {
     _repository = stub;
 }
Ejemplo n.º 13
0
 public AdminBLL()
 {
     _repository = new AdminDAL();
 }
Ejemplo n.º 14
0
 public AdminManager(IAdminDAL AdminDAL)
 {
     _adminDAL = AdminDAL;
 }
Ejemplo n.º 15
0
 public AdminController(IAdminDAL admin)
 {
     iadmin = admin;
 }
Ejemplo n.º 16
0
 public AdminService(IAdminDAL adminDAL)
 {
     _adminDAL = adminDAL;
 }
        public List <IItemCategory> GetCategoryList()
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetCategoryList());
        }
Ejemplo n.º 18
0
 public AdminBl(IAdminDAL adminDAL)
 {
     _adminDAL = adminDAL;
 }
        public bool CheckEmpID(int empID)
        {
            IAdminDAL objDAL = DALFactory.AdminDALFactory.CreateAdminDALObject();

            return(objDAL.CheckEmpID(empID));
        }
Ejemplo n.º 20
0
 public AdminBLL()
 {
     _aDAL = new AdminDAL();
     _kDAL = new Kundebehandler();
 }
        public bool ChangePassword(int empid, string password)
        {
            IAdminDAL objDAL = TCS.ISMS.DALFactory.AdminDALFactory.CreateAdminDALObject();

            return(objDAL.ChangePassword(empid, password));
        }
Ejemplo n.º 22
0
 public AdminBLL(IAdminDAL astub, IKundebehandler kstub)
 {
     _aDAL = astub;
     _kDAL = kstub;
 }
        public void SaveCategory(string name)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            objDAL.SaveCategory(name);
        }
Ejemplo n.º 24
0
 public AdminBAL(IAdminDAL AdminDAL)
 {
     _AdminDAL = AdminDAL;
 }
        public bool DeleteEmployeeDetails(List <int> lstEmployee)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.DeleteEmployeeDetails(lstEmployee));
        }
        public ILogon GetUserMenu(ILogin loginDetails)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetUserMenu(loginDetails));
        }
        public List <IEmployee> GetEmployeeDetailsList(string name)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetEmployeeDetailsList(name));
        }
        public bool UpdateItemDetails(IItem objItem)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.UpdateItemDetails(objItem));
        }
        public List <IRole> GetRoleList()
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetRoleList());
        }
        public List <IItem> GetItemDetails(int CategoryId)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.GetItemDetails(CategoryId));
        }
        public bool DeleteItemDetails(List <int> ItemID)
        {
            IAdminDAL objDAL = AdminDALFactory.CreateAdminDALObject();

            return(objDAL.DeleteItemDetails(ItemID));
        }
Ejemplo n.º 32
0
 public AdminService(IAdminDAL adminDAL)
 {
     this.adminDAL = adminDAL;
 }