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); }
public void UpdateEmployees(EmployeeDS ds, int[] roles, int empid) { EmployeeDALC edalc = new EmployeeDALC(); edalc.Update(ds); AuthorizationDALC adalc = new AuthorizationDALC(); adalc.UpdateRoles(roles, empid); }
public AuthorizationDS GetAllRoles() { AuthorizationDALC adalc = new AuthorizationDALC(); return(adalc.GetAllRoles()); }
public void UpdateAuthorization(int[] roles, int empid) { AuthorizationDALC adalc = new AuthorizationDALC(); adalc.UpdateRoles(roles, empid); }
public AuthorizationDS GetUserRoles(int userid) { AuthorizationDALC adalc = new AuthorizationDALC(); return(adalc.GetUserRoles(userid)); }
public int AuthenticateUser(string username, string password) { AuthorizationDALC adalc = new AuthorizationDALC(); return(adalc.AuthenticateUser(username, password)); }