public void Handle(RemoveItemFromShoppingCart c) { _repository.GetDoSave(c.ShoppingCartId, (d) => { d.Remove(c.ItemId, c.Quanity); }); }
public void Handle(UpdateCategory c) { _repo.GetDoSave(c.Id, obj => { obj.Update(c.IsSinglePage, c.ShowInFrontEnd, c.Title , c.SeoKeywords, c.SeoDescription, c.SeoUrlFriendly , c.CategoryViewName, c.IconUrl, c.Description, c.LanguageId, c.Type); }); }
public void Handle(UpdateNews c) { _repo.GetDoSave(c.Id, obj => { obj.Update(c.AllowComment, c.Title, c.ShortDesciption, c.Description, c.UrlImage, c.LanguageId); }); }
public void Handle(CommentCheckinByEmployee c) { _repository.GetDoSave(c.CheckinId, a => a.EmployeeComment(c.Comment, c.CreatedBy)); }
public void Handle(ApplyVoucherCode c) { _repo.GetDoSave(c.Id, o => o.Apply(c.Code, c.OrderCode, c.UserId, c.ValueApply)); }
public void Handle(UpdateProduct c) { _repo.GetDoSave(c.Id, obj => { obj.Update(c.ProductCode, c.AllowComment, c.Price, c.Gram, c.Calorie, c.Quantity, c.UrlImage, c.Title, c.ShortDesciption, c.Description, c.LanguageId); }); }
public void Handle(UpdateProductPromotion c) { _repo.GetDoSave(c.Id, o => o.Update(c.ProductQuantity, c.DiscountValue, c.Description , EngineeCurrentContext.SystemMinDate, EngineeCurrentContext.SystemMinDate, c.LanguageId)); }
public void Handle(SuccessPaymentTransaction c) { _repo.GetDoSave(c.Id, o => o.Success()); }
public void Handle(UpdateUser c) { _repo.GetDoSave(c.Id, obj => { obj.Update(c.Phone, c.Email); }); }
public void Handle(UpdateOrderPromotion c) { _repo.GetDoSave(c.Id, o => o.Update(c.LanguageId, c.Description, c.AmountToDiscount, c.DiscountAmount, c.FreeShip)); }
public void Handle(AddProductToShoppingCart c) { _repo.GetDoSave(c.Id, obj => obj.AddProduct(c.ProductId, c.Quantity)); }