Exemple #1
0
        public async Task <IActionResult> AddPoupanca(ContaDto contaDto)
        {
            try {
                var contaAdd = await _service.AddPoupanca(contaDto);

                return(Created($"/api/conta/{contaAdd.Id}", contaAdd));
            }catch (ArgumentException e) {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}"));
            }
        }