Beispiel #1
0
        public IActionResult RelatorioBalancoMensal(RelatorioBalancoMensalViewModel relatorioBalancoDiarioViewModel)
        {
            var retorno =
                _balancoAppService.ObterBalancoPorPerido(relatorioBalancoDiarioViewModel.BalancoMensalSearchModel.DataInicial,
                                                         relatorioBalancoDiarioViewModel.BalancoMensalSearchModel.DataFinal);

            relatorioBalancoDiarioViewModel.BalancoMensalViewModel   = retorno.Item1;
            relatorioBalancoDiarioViewModel.BalancosDiariosViewModel = retorno.Item2;

            return(View(relatorioBalancoDiarioViewModel));
        }
Beispiel #2
0
        public virtual async Task <IActionResult> RelatorioBalancoMensal([FromBody] JObject json)
        {
            try
            {
                DateTime dataInicial = json["dataInicial"].ToObject <DateTime>();
                DateTime dataFinal   = json["dataFinal"].ToObject <DateTime>();

                return(Ok(_balancoAppService.ObterBalancoPorPerido(dataInicial, dataFinal)));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }