public IActionResult Get(int id)
 {
     if (!repository.CheckIfExists(id))
     {
         return(NotFound());
     }
     return(Json(repository.GetById(id)));
 }