public ActionResult <object> Delete(int id)
 {
     try
     {
         int retVal = _matchesService.Remove(id);
         if (retVal >= 0)
         {
             var toSerialize = new MessageHelpers <MatchesViewModel>()
             {
                 Status = 200,
                 Data   = null
             };
             return(JsonConvert.SerializeObject(toSerialize));
         }
         else
         {
             var toSerialize = new MessageHelpers <MatchesViewModel>()
             {
                 Status = 404,
                 Data   = null
             };
             return(JsonConvert.SerializeObject(toSerialize));
         }
     }
     catch
     {
         var toSerialize = new MessageHelpers <MatchesViewModel>()
         {
             Status = 502,
             Data   = null
         };
         return(JsonConvert.SerializeObject(toSerialize));
     }
 }
        public IActionResult Delete(string id)
        {
            var match = _matchService.Get(id);

            if (match == null)
            {
                return(NotFound());
            }

            _matchService.Remove(match);

            return(NoContent());
        }