public static async Task <string> DeleteRace(int id)
        {
            var raceService = new RaceService();
            var response    = await raceService.DeleteRace(id);

            return(response.ToString());
        }
 public ActionResult DeleteRace(RaceDetailsViewModel model)
 {
     _raceService.DeleteRace(model.RaceId);
     return(RedirectToAction("Index"));
 }