Beispiel #1
0
        public void CreateEmployee(EmployeeDS ds, int[] roles)
        {
            EmployeeDALC edalc = new EmployeeDALC();

            edalc.Update(ds);

            AuthorizationDALC adalc = new AuthorizationDALC();

            adalc.UpdateRoles(roles, ds.Employee[0].EmpID);
        }
Beispiel #2
0
        public void UpdateEmployees(EmployeeDS ds, int[] roles, int empid)
        {
            EmployeeDALC edalc = new EmployeeDALC();

            edalc.Update(ds);

            AuthorizationDALC adalc = new AuthorizationDALC();

            adalc.UpdateRoles(roles, empid);
        }
Beispiel #3
0
        public AuthorizationDS GetAllRoles()
        {
            AuthorizationDALC adalc = new AuthorizationDALC();

            return(adalc.GetAllRoles());
        }
Beispiel #4
0
        public void UpdateAuthorization(int[] roles, int empid)
        {
            AuthorizationDALC adalc = new AuthorizationDALC();

            adalc.UpdateRoles(roles, empid);
        }
Beispiel #5
0
        public AuthorizationDS GetUserRoles(int userid)
        {
            AuthorizationDALC adalc = new AuthorizationDALC();

            return(adalc.GetUserRoles(userid));
        }
Beispiel #6
0
        public int AuthenticateUser(string username, string password)
        {
            AuthorizationDALC adalc = new AuthorizationDALC();

            return(adalc.AuthenticateUser(username, password));
        }