コード例 #1
0
        public ActionResult Create()
        {
            var areaViewModel = _areaAppService.GetAll();

            ViewBag.AreaId = new SelectList(areaViewModel, "AreaId", "Descricao");
            return(View());
        }
コード例 #2
0
        public ActionResult Index()
        {
            var disciplinaViewModel = _disciplinaAppService.GetAll();

            ViewBag.AreaId = new SelectList(_areaAppService.GetAll(), "AreaId", "Descricao", "Selecione");
            ViewBag.Nivel  = new SelectList(new ListaNiveis().Niveis(), "Key", "Value", "Selecione");
            return(View(disciplinaViewModel));
        }
コード例 #3
0
ファイル: AreaController.cs プロジェクト: Coding-Yu/SHS.CMS
        public async Task <JsonResult> GetList()
        {
            QueryAreaFilter filter = new QueryAreaFilter();

            filter.limit   = int.Parse(Request.Query["limit"]);
            filter.page    = int.Parse(Request.Query["page"]);
            filter.ZipCode = Request.Query["zipCode"];
            var result = await _areaAppService.GetAll(filter);

            OutputModel outputModel = new OutputModel();

            outputModel.Data = result;
            return(new JsonResult(outputModel));
        }
コード例 #4
0
 public IActionResult Get()
 {
     return(Response(_areaAppService.GetAll()));
 }
コード例 #5
0
 public ActionResult Create(Guid id)
 {
     ViewBag.MestreId = id;
     ViewBag.AreaId   = new SelectList(_areaAppService.GetAll(), "AreaId", "Descricao", "Selecione");
     return(View());
 }
コード例 #6
0
 public ActionResult Index()
 {
     return(View(_areaAppService.GetAll()));
 }