Пример #1
0
        public virtual ActionResult AddWitness(AdministrativeDivision city)
        {
            SetNavigationHierarchy(GetGamblingCityNavigationItems(city), "Записаться в понятые");

            var addWitnessFormViewModel = new AddWitnessFormViewModel();

            return View(addWitnessFormViewModel);
        }
Пример #2
0
 public virtual ActionResult AddWitness(AdministrativeDivision city, AddWitnessFormViewModel form)
 {
     return Handle(() =>
                {
                    var witnessForm = new Witness(city.Id, form.Name, form.ConnectText, form.WhenText);
                    _documentSession.Store(witnessForm);
                },
                success: () => MVC.Gambling.Casino.GetCasinos());
 }