Esempio n. 1
0
 public ActionResult Edit(BindingViewModel viewModel, int?page)
 {
     if (ModelState.IsValid)
     {
         var binding = AutoMapper.Mapper.Map <BindingViewModel, IBinding>(viewModel);
         PopulateSelectListsToModel(viewModel, binding);
         BindingService.CreateOrUpdate(binding);
         return(RedirectToAction("Index", new { page }));
     }
     return(View(viewModel));
 }