public ActionResult Edit(List <EnrollmentType> l)
        {
            l[0].UpdateYN = true;
            EnrollmentTypesRepository rep = new EnrollmentTypesRepository();

            rep.UpdEnrollmentTypes(l);
            return(View(rep.GetEnrollmentTypes()));
        }
        public ActionResult Add(List <EnrollmentType> l)
        {
            EnrollmentType et = new EnrollmentType();

            et.KeyField     = -1;
            et.Description  = Request["desc"];
            et.DisplayOrder = Convert.ToInt16(Request["order"]);
            l = new List <EnrollmentType>();
            l.Add(et);
            EnrollmentTypesRepository rep = new EnrollmentTypesRepository();

            rep.UpdEnrollmentTypes(l);
            return(RedirectToAction("Index", "EnrollmentTypes"));
        }
        public ActionResult Delete()
        {
            EnrollmentType et = new EnrollmentType();

            et.KeyField    = Convert.ToInt16(Request["ID"]);
            et.Description = "Deleted Item";
            et.DeleteYN    = true;
            List <EnrollmentType> l = new List <EnrollmentType>();

            l.Add(et);
            EnrollmentTypesRepository rep = new EnrollmentTypesRepository();

            rep.UpdEnrollmentTypes(l);
            return(RedirectToAction("Index", "EnrollmentTypes"));
        }