public ActionResult Details(int id) { MedicinaEntities db = new MedicinaEntities(); Topico topico = db.Topico.Where(s => s.Id.Equals(id)).FirstOrDefault(); if (topico != null) { return(View(topico)); } else { ResultSet response = new ResultSet(); response.Code = -1; response.Msg = String.Format("La imagen seleccionada ya no existe"); return(RedirectToAction("Index", new RouteValueDictionary(response))); } }
public ArticuloController() { db = new MedicinaEntities(); }
public UsuarioController() { db = new MedicinaEntities(); }
public TopicoController() { db = new MedicinaEntities(); }
public ImagenController() { db = new MedicinaEntities(); }