public async Task <IActionResult> Create([Bind("HourRate,Start,End,Id")] BLL.App.DTO.HourlyRate hourlyRate)
        {
            if (ModelState.IsValid)
            {
                _bll.HourlyRates.Add(hourlyRate);
                await _bll.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(hourlyRate));
        }
        public async Task <IActionResult> Edit(int id, [Bind("HourRate,Start,End,Id")] BLL.App.DTO.HourlyRate hourlyRate)
        {
            if (id != hourlyRate.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                _bll.HourlyRates.Update(hourlyRate);
                await _bll.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(hourlyRate));
        }