public Bill AddBill(BillAddRequest billAddRequest)
        {
            var bill = mapper.Map <Bill>(billAddRequest);

            _bills.Add(bill);

            return(bill);
        }
Exemplo n.º 2
0
        public IActionResult AddBill([FromBody] BillAddRequest billAddRequest)
        {
            var bill = billService.AddBill(billAddRequest);

            return(CreatedAtAction(nameof(GetBill), new { bill.Id }, bill));
        }