public ActionResult <Foto> GetFoto(int id) { Foto foto = _fotoRepository.GetBy(id); if (foto == null) { return(NotFound()); } return(foto); }