Example #1
0
 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
     });
 }
Example #2
0
        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
            }));
        }