public ActionResult Create(Pais pais)
        {
            if (ModelState.IsValid)
            {
                db.Paises.Add(pais);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(pais);
        }
 public ActionResult Edit(Pais pais)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pais).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(pais);
 }
        public JsonResult Pais(int? id, Pais item)
        {
            switch (Request.HttpMethod)
            {
                case "POST":
                //return Json(InsertarColegios(item));
                case "PUT":
                //  return Json(ActualizarColegios(item));
                case "GET":
                    return Json(ObtenerDpto(id.GetValueOrDefault()),
                                JsonRequestBehavior.AllowGet);

            }

            return Json(new { Error = true, Message = "Operación HTTP desconocida" });
        }