Пример #1
0
 public ActionResult Create(RoomCreateModel model)
 {
     if (ModelState.IsValid)
     {
         var room = _roomCreateCommand.Execute(model);
         return RedirectToAction("Details", new { id = room.Id });
     }
     return View(model);
 }
Пример #2
0
 public ActionResult Create()
 {
     var model = new RoomCreateModel();
     return View(model);
 }