public ActionResult Edit(RentalEditorViewModel postedModel)
        {
            if (ModelState.IsValid)
            {
                postedModel.UpdateEntity(this.Rental);
                RepositoriesFactory.SaveChanges();

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

            return(View(postedModel));
        }
        public ActionResult Edit()
        {
            var model = new RentalEditorViewModel(this.Rental);

            return(View(model));
        }