private void ObterObrasEServicos() { var obrasViewModel = _fSPAppService.ObterTodasObras(); ViewBag.Obras = string.Empty; ViewBag.Obras = new SelectList(obrasViewModel, "CodigoObra", "NomeObra", "0"); var servicosViewModel = _fSPAppService.ObterTodosServicos(); ViewBag.Servicos = string.Empty; ViewBag.Servicos = new SelectList(servicosViewModel, "CodigoServico", "DescricaoServico", "0"); }
private void ObterObrasEFornecedor() { var obrasViewModel = _fSPAppService.ObterTodasObras(); ViewBag.Obras = string.Empty; ViewBag.Obras = new SelectList(obrasViewModel, "CodigoObra", "NomeObra", "0"); var fornecedoresViewModel = _fSPAppService.ObterTodosFornecedors(); ViewBag.Fornecedores = string.Empty; ViewBag.Fornecedores = new SelectList(fornecedoresViewModel, "CodigoFornecedor", "RazaoSocial", "0"); }
public IEnumerable <ObraViewModel> ObterTodasObras() { return(_fSPAppService.ObterTodasObras()); }
public string ObterTodasObras() { return(JsonConvert.SerializeObject(new { data = _fSPAppService.ObterTodasObras() })); }