public IActionResult Details(string adress)
        {
            RentPoint rp = _queryBuilder
                           .For <RentPoint>()
                           .With
                               (new AdressCriterion
            {
                Adress = adress
            });
            var vm = new RentPointViewModel(rp);

            return(View(vm));
        }
        public IActionResult Create(RentPointViewModel vm)
        {
            _commandBuilder.Execute(
                new AddRentPointCommandContext
            {
                Name     = vm.Name,
                Adress   = vm.Adress,
                Employee = new Employee(vm.EmployeeName, vm.EmployeeSurname, vm.EmployeePatronymic)
            });

            var allRentPoints = _queryBuilder
                                .For <IEnumerable <RentPoint> >()
                                .With(new EmptyCriterion()
                                      );

            return(RedirectToAction("List"));
        }
 public IActionResult Edit(RentPointViewModel rp)
 {
     return(RedirectToAction("List"));
 }