コード例 #1
0
        public IHttpActionResult CadastrarFechamentoDiario(FechamentoDiarioModel model)
        {
            var appServiceModel = Mapper.Map <FechamentoDiarioAppModel>(model);

            this._caixaAppService.CadastrarFechamentoDiario(appServiceModel);

            return(Ok());
        }
コード例 #2
0
        static async Task <HttpResponseMessage> SalvarFechamentoDiario(FechamentoDiarioModel fechamento)
        {
            HttpResponseMessage response = await client.PostAsJsonAsync(
                "api/caixaapi/CadastrarFechamentoDiario", fechamento);

            response.EnsureSuccessStatusCode();

            // return URI of the created resource.
            return(response);
        }
コード例 #3
0
        private async static void TestFechamentoDiarioResp()
        {
            for (int i = 1; i <= 10; i++)
            {
                var fechamento = new FechamentoDiarioModel
                {
                    ValorEntrada     = "298,13",
                    ValorDaSaida     = "50,00",
                    Saldo            = "0,97",
                    Status           = "",
                    DiaFechamento    = "15/11/2018",
                    CaixaFinalDoDia  = "3.332,10",
                    CaixaInicioDoDia = "403,00",
                    ValorDaRetirada  = "3.060,00",
                    Funcionario      = "João pppp",
                    Entradas         = ObterEntradas(),
                    Saidas           = ObterSaidas()
                };

                await SalvarFechamentoDiario(fechamento);
            }
        }