public ActionResult Create([Bind(Include = "Surv,IsSample,Processed,LabEndClosing,HospExDate,DiagEg")] CatCloseParameters oCatCloseParameter)
        {
            if (ModelState.IsValid)
            {
                db.CatCloseParameters.Add(oCatCloseParameter);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(oCatCloseParameter));
        }
        //// GET: CatCloseParameters/Details/5
        //public ActionResult Details(int id)
        //{
        //    return View();
        //}

        // GET: CatCloseParameters/Create
        public ActionResult Create()
        {
            CatCloseParameters oCatCloseParameters = new CatCloseParameters();

            try
            {
                oCatCloseParameters.SurvRegCollection = db.CatSurv.ToList <CatSurv>();
                return(View(oCatCloseParameters));
            }
            catch (Exception err)
            {
                ViewBag.Message = "La lista de tipos de Vigilancia no se pudo generar, por favor intente de nuevo: " + err.Message;
                return(View());
            }
        }