Exemplo n.º 1
0
        private static Role UserWithPrivilegeViewEditDelete(User user)
        {
            DataBaseAccess.ViewMessageAndUsers(DataBaseAccess.AccessDB());
            DataBaseAccess.InsertMessage(DataBaseAccess.AccessDB());
            DataBaseAccess.DeleteMessage(DataBaseAccess.AccessDB());

            return(Role.UserWithPrivilegeViewEditDelete);
        }
Exemplo n.º 2
0
 //AdminPrivilege
 private static void AdminPrivileges(User user)
 {
     DataBaseAccess.AccessDB();
     DataBaseAccess.ViewMessageAndUsers(DataBaseAccess.AccessDB());
     DataBaseAccess.InsertMessage(DataBaseAccess.AccessDB());
     DataBaseAccess.UpadeMessage(DataBaseAccess.AccessDB());
     DataBaseAccess.DeleteMessage(DataBaseAccess.AccessDB());
     //User.CheckNameAndPassword(list, user);
 }