public void Handle(AddItemToShoppingCart c) { var obj = _repository.Get(c.ShoppingCartId); obj.Add(c.ItemId, c.Quanity); _repository.Save(obj); }
public void Handle(CommentCheckinByEvaluator c) { var o = _repository.Get(c.CheckinId); o.EvaluatorComment(c.Comment, c.CreatedBy); _repository.Save(o); }
public void Handle(ChangeNameOfAutoNumberTest c) { var obj = _repository.Get(c.Id); obj.ChangeName(c.NewName); _repository.Save(obj); }