Esempio n. 1
0
        private static Role UserWithPrivilegeViewEdit(User user)
        {
            DataBaseAccess.ViewMessageAndUsers(DataBaseAccess.AccessDB());
            DataBaseAccess.InsertMessage(DataBaseAccess.AccessDB());

            return(Role.UserWithPrivilegeViewEdit);
        }
Esempio 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);
 }
Esempio n. 3
0
 //Messeger Details od Message and User
 public static void Messenger(User user)
 {
     LoginScreen.Login(DataBaseAccess.AccessDB(), user);
     DataBaseAccess.ViewMessageAndUsers(DataBaseAccess.AccessDB());
     DataBaseAccess.InsertMessage(DataBaseAccess.AccessDB());
 }