//
        // GET: /Admin/EmploymentStatus/

        public async Task <ActionResult> Index()
        {
            ListModel <Employmentstatus> l = null;

            l = await EmploymentstatusHelper.GetAll();

            return(View(l));
        }
        public async Task <ActionResult> List()
        {
            string keyword    = CommonHelper.GetValue(Request["keyword"]);
            int    pgnum      = CommonHelper.GetValue <int>(Request["pgnum"], 1);
            int    pgsize     = CommonHelper.GetValue <int>(Request["pgsize"], 0);
            string sortcolumn = CommonHelper.GetValue(Request["sortcolumn"], DepartmentHelper.DEFAULT_SORT_COLUMN);
            string sortdir    = CommonHelper.GetValue(Request["sortdir"], DepartmentHelper.DEFAULT_SORT_DIR);

            Sort sort = new Sort(sortcolumn, sortdir);

            ListModel <Employmentstatus> l = null;

            if (string.IsNullOrEmpty(keyword))
            {
                l = await EmploymentstatusHelper.GetAll(pgnum, pgsize, sort);
            }

            else
            {
                l = await EmploymentstatusHelper.GetFilterBy(keyword, pgnum, pgsize, sort);
            }

            return(View("_list", l));
        }