예제 #1
0
        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");
        }
예제 #2
0
 public string ObterTodosServicos()
 {
     return(JsonConvert.SerializeObject(new { data = _fspAppService.ObterTodosServicos() }));
 }