static public void SelectMode(int mode) { switch (mode) { case 1: CreateUser(); if (sAttr == "1") { Save(path); } Refresh(path); break; case 2: ViewUsers(usersandawardsLogic.GetAllUsers(), true); PrintMenu(); SelectMode(InputMode()); break; case 3: RemoveUser(); if (sAttr == "1") { Save(path); } Refresh(path); break; case 4: CreateAward(); if (sAttr == "1") { Save(path); } Refresh(path); break; case 5: ViewAwards(usersandawardsLogic.GetAllAwards(), true); PrintMenu(); SelectMode(InputMode()); break; case 6: AddAwardToUser(); if (sAttr == "1") { Save(path); } Refresh(path); break; case 0: return; } }
public static ICollection <Award> GetAllAward() { ICollection <Award> awards = usersandawardsLogic.GetAllAwards(); return(awards); }