public async Task <IActionResult> PutBudgets(int id, ExpenseService.DataAccess.Model.Budgets budgets)
        {
            if (id != budgets.Id)
            {
                return(BadRequest());
            }

            var newBudgets = Mapper.MapBudgets(budgets);

            _repo.Changed(newBudgets);

            try
            {
                await _repo.SaveAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!(await BudgetsExists(id)))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }