public IActionResult Delete(string id) { var Stats = _StatsService.Get(id); if (Stats == null) { return(NotFound()); } _StatsService.Delete(Stats.Id); return(NoContent()); }