public ActionResult Edit([Bind(Include = "educationTypeID,educationTypeName")] educationType educationType)
        {
            try
            {
                var educationDetails = repo.Single(educationType.educationTypeID);
                if (educationDetails == null)
                {
                    return(HttpNotFound());
                }

                educationDetails.dataIsUpdated     = BaseUtil.GetCurrentDateTime();
                educationDetails.modifiedBy        = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.UserID.ToString()));
                educationDetails.educationTypeName = educationType.educationTypeName;
                educationDetails.isActive          = educationType.isActive;
                if (ModelState.IsValid)
                {
                    repo.Update(educationDetails);
                    return(RedirectToAction("Index"));
                }
            }
            catch (Exception e)
            {
                BaseUtil.CaptureErrorValues(e);
            }
            return(View(educationType));
        }
        public ActionResult Create([Bind(Include = "educationTypeID,educationTypeName")] educationType educationType)
        {
            try
            {
                educationType.createdBy     = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.UserID.ToString()));
                educationType.modifiedBy    = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.UserID.ToString()));
                educationType.dataIsCreated = BaseUtil.GetCurrentDateTime();
                educationType.dataIsUpdated = BaseUtil.GetCurrentDateTime();
                educationType.isActive      = true;
                if (ModelState.IsValid)
                {
                    repo.Insert(educationType);
                    return(RedirectToAction("Index"));
                }
            }

            catch (Exception e)
            {
                BaseUtil.CaptureErrorValues(e);
            }
            return(View(educationType));
        }