public ActionResult UpdateProduct(ProductEditViewModel viewModel) { var handler = _commandHandlerFactory.GetCommandHandler <ProductEditViewModel, bool>(); var isSuccess = handler.Handle(viewModel, CurrentUser.Id); return(RedirectToAction("Index")); }
public ActionResult UpdateAccountDetails(AccountDetailsEditViewModel viewModel) { var isSuccess = _commandHandlerFactory.GetCommandHandler <AccountDetailsEditViewModel, bool>().Handle(viewModel, CurrentUser.Id); return(RedirectToAction("Index")); }