Пример #1
0
 public ActionResult GetSuggestedDuties(int NocCode)
 {
     GovDbBusinessLayer gv = new GovDbBusinessLayer();
     List<Duty> dutyList = gv.GetDutiesForTitle(NocCode);
     return Json(dutyList, JsonRequestBehavior.AllowGet);
 }
Пример #2
0
 public ActionResult GetRequirements(int NocCode)
 {
     GovDbBusinessLayer gv = new GovDbBusinessLayer();
     List<Requirement> requirementList = gv.GetRequirementsForTitle(NocCode);
     return Json(requirementList, JsonRequestBehavior.AllowGet);
 }
Пример #3
0
        public ActionResult GetTenTitles(string searchStringClient)
        {
            GovDbBusinessLayer gv = new GovDbBusinessLayer();
            List<Title> titleList = gv.GetTitles(searchStringClient);
            if (String.IsNullOrEmpty(searchStringClient))
            {
                Title t = new Title();
                t.Titl = "no title is selected";
                titleList.Add(t);
            }

            return Json(titleList, JsonRequestBehavior.AllowGet);
        }