Пример #1
0
 public IActionResult CreateRoom(CreateRoomVM viewModel)
 {
     if (!ModelState.IsValid)
     {
         return(View(viewModel));
     }
     else
     {
         context.AddRoom(viewModel);
         return(RedirectToAction(nameof(AdminController.CreateRoom)));
     }
 }