public string update(PositionYearRateHours PositionYearRateHours, int id)
        {
            var response =
                ApiHelper.Post(ApiEndpoint + "/positionYearRateHours/" + id.ToString(),
                               new Dictionary <string, string>
            {
                { "year", PositionYearRateHours.year.ToString() },
                { "position", PositionYearRateHours.position },
                { "rate_hours", PositionYearRateHours.rate_hours.ToString() }
            });

            return(response);
        }
        private void add_Click(object sender, EventArgs e)
        {
            var newpyrh = new PositionYearRateHours {
                year       = Utilities.ParseIntOrZero(year.Text),
                position   = position.Text,
                rate_hours = Utilities.ParseIntOrZero(rate_hours.Text)
            };

            pyrhRepo.add(newpyrh);

            ReloadYearHours(currentYear);
            ReloadYearsList();
        }