//[Route("Post")]
 public IActionResult Post([FromBody] Statstics statstics)
 {
     try
     {
         _calculateStatistics.AddEntity(statstics);
         if (_calculateStatistics.SaveAll())
         {
             return(Created($"/api/statistics/{statstics.Id}", statstics));
         }
     }
     catch (Exception ex)
     {
         //Send the exception to a log
     }
     return(BadRequest("Failed to save"));
 }
 public void AddEntity(Statstics statstics)
 {
     _statisticContext.Add(statstics);
 }