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