public async Task <ActionResult> List()
        {
            int    find       = CommonHelper.GetValue <int>(Request["find"], 0);
            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"], DesignationHelper.DEFAULT_SORT_COLUMN);
            string sortdir    = CommonHelper.GetValue(Request["sortdir"], DesignationHelper.DEFAULT_SORT_DIR);

            Sort sort = new Sort(sortcolumn, sortdir);

            ListModel <Designation> l = null;

            if (find == 0 && string.IsNullOrEmpty(keyword))
            {
                l = await DesignationHelper.GetAll(pgnum, pgsize, sort);
            }

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

            return(View("_list", l));
        }
        //
        // GET: /Admin/Designation/

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

            l = await DesignationHelper.GetAll();

            return(View(l));
        }