コード例 #1
0
        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)));
            }
        }
コード例 #2
0
 public ArticuloController()
 {
     db = new MedicinaEntities();
 }
コード例 #3
0
 public UsuarioController()
 {
     db = new MedicinaEntities();
 }
コード例 #4
0
 public TopicoController()
 {
     db = new MedicinaEntities();
 }
コード例 #5
0
 public ImagenController()
 {
     db = new MedicinaEntities();
 }