private static void SearchSteaks() { int steakId = SteakView.SearchSteak(); Steak mySteak = SteakRepository.ListById(steakId); SteakView.DisplaySteak(mySteak); }
private static void CreateSteak() { Steak mySteak = SteakView.GetNewSteakData(); SteakRepository.Create(mySteak); SteakView.DisplaySteak(mySteak); }
private static void DisplaySteaks() { List <Steak> steaks = SteakManager.Data.SteakRepository.ListAll(); foreach (Steak steak in steaks) { SteakView.DisplaySteak(steak); } }
private static void EditSteak() { int Id = SteakView.SearchSteak(); Steak mySteak = SteakRepository.ListById(Id); mySteak = SteakView.EditSteakInfo(mySteak); SteakRepository.Edit(mySteak.Id, mySteak); SteakView.DisplaySteak(mySteak); }