Esempio n. 1
0
        public ActionResult UpdateProduct(ProductEditViewModel viewModel)
        {
            var handler   = _commandHandlerFactory.GetCommandHandler <ProductEditViewModel, bool>();
            var isSuccess = handler.Handle(viewModel, CurrentUser.Id);

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        public ActionResult UpdateAccountDetails(AccountDetailsEditViewModel viewModel)
        {
            var isSuccess = _commandHandlerFactory.GetCommandHandler <AccountDetailsEditViewModel, bool>().Handle(viewModel, CurrentUser.Id);

            return(RedirectToAction("Index"));
        }