public string AddPresent(string presentName, int energyRequired) { Present present = new Present(presentName, energyRequired); presents.Add(present); return(string.Format(OutputMessages.PresentAdded, presentName)); }
public string AddPresent(string presentName, int energyRequired) { var currPresent = new Present(presentName, energyRequired); presents.Add(currPresent); return($"Successfully added Present: {presentName}!"); }