Exemple #1
0
        public ActionResult Edit(SiteView view)
        {
            _bus.Send(new UpdateSite
                {
                    Id = view.SiteId,
                    Name = view.Name,
                    Capacity = view.Capacity
                });

            return RedirectToAction("Index");
        }
Exemple #2
0
        public ActionResult Create(SiteView view)
        {
            _bus.Send(new CreateSite
                {
                    Id = ObjectId.GenerateNewId().ToString(),
                    Name = view.Name,
                    Capacity = view.Capacity
                });

            return RedirectToAction("Index");
        }