private static Role UserWithPrivilegeViewEdit(User user) { DataBaseAccess.ViewMessageAndUsers(DataBaseAccess.AccessDB()); DataBaseAccess.InsertMessage(DataBaseAccess.AccessDB()); return(Role.UserWithPrivilegeViewEdit); }
//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); }
//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()); }