public FubuContinuation Command(EditProductCommandModel model) { var product = _productService.GetById(model.Id); _mapper.Map(model, product); return FubuContinuation.RedirectTo(new SuccessOperationRequest { Id = model.Id, Operation = OperationType.Update }); }
public FubuContinuation Command(EditProductCommandModel model) { var product = _productService.GetById(model.Id); _mapper.Map(model, product); return(FubuContinuation.RedirectTo(new SuccessOperationRequest { Id = model.Id, Operation = OperationType.Update })); }