Example #1
0
 public string Index()
 {
     var testSport = new Sport()
     {
         Address = "Caleta",
         Name = "Este lugar",
         Type = "Soccer",
         ListOfPlayers = new List<Player>()
     };
     return _service.Create(testSport);
 }
Example #2
0
        public string Create(Sport newSport)
        {
            var insertResult = _repo.Insert(newSport);

            return insertResult + "\n\nA car has been inserted!";
        }