public ActionResult Create() { var areaViewModel = _areaAppService.GetAll(); ViewBag.AreaId = new SelectList(areaViewModel, "AreaId", "Descricao"); return(View()); }
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)); }
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)); }
public IActionResult Get() { return(Response(_areaAppService.GetAll())); }
public ActionResult Create(Guid id) { ViewBag.MestreId = id; ViewBag.AreaId = new SelectList(_areaAppService.GetAll(), "AreaId", "Descricao", "Selecione"); return(View()); }
public ActionResult Index() { return(View(_areaAppService.GetAll())); }