public string AddCard(string type, string name) { var card = cardFactory.CreateCard(type, name); this.cardRepository.Add(card); return($"Successfully added card of type {type}Card with name: {name}"); }
public string AddCard(string type, string name) { var card = CardFactory.CreateCard(type, name); this.cardRepository.Add(card); return(string.Format(ConstantMessages.SuccessfullyAddedCard, type, name)); }