// GET: Contactos/Details/5 public ActionResult Details(int id) { var model = repo.LeerPorId(id); if (model == null) { return(NotFound()); } var foto = ($"{Request.Scheme}://{Request.Host}/{fotosDir}/{model.ID}.jpg"); model.Foto = foto; return(View(model)); }