예제 #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
     });
 }
예제 #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
            }));
        }