public async Task <IActionResult> PutBills(int id, ExpenseService.DataAccess.Model.Bills bills) { if (id != bills.Id) { return(BadRequest()); } var newBill = Mapper.MapBills(bills); _repo.Changed(newBill); try { await _repo.SaveAsync(); } catch (DbUpdateConcurrencyException) { if (!(await BillsExists(id))) { return(NotFound()); } else { throw; } } return(NoContent()); }