public static Employeequalification GetObject(Employee e, FormCollection fc)
        {
            string paramStartdate = GetParam("start_date", fc);
            DateTime startdate = CommonHelper.GetDateTime(paramStartdate);

            string paramEnddate = GetParam("end_date", fc);
            DateTime enddate = CommonHelper.GetDateTime(paramEnddate);

            string paramLevel = GetParam("level", fc);
            int level = CommonHelper.GetValue<int>(paramLevel);

            string paramYear = GetParam("year", fc);
            int year = CommonHelper.GetValue<int>(paramYear);

            string paramGpa = GetParam("gpa", fc);
            double gpa = CommonHelper.GetValue<double>(paramGpa);

            Employeequalification o = e.Employeequalification;

            if (o == null)
            {
                o = new Employeequalification();
                o.Id = e.Id;
            }

            o.Level = level;
            o.Institute = GetParam("institute", fc);
            o.Major = GetParam("major", fc);
            o.Year = year;
            o.Gpa = gpa;
            o.Startdate = startdate;
            o.Enddate = enddate;

            return o;
        }
        public static Employeequalification Find(object id)
        {
            Employeequalification o = null;

            ISession se = NHibernateHelper.CurrentSession;

            o = se.Get<Employeequalification>(id);

            if (o == null)
                o = new Employeequalification();

            return o;
        }