Beispiel #1
0
        public string Execute(UnMarkProductDto dto)
        {
            string        result = Messages.ProductNotExist;
            MarkedProduct mark   = unit.MarkedProduct.GetByUserAndProduct(dto.UserId, dto.ProductId);

            if (mark != null)
            {
                unit.MarkedProduct.Remove(mark);
                unit.Complete();
                result = Messages.ErenOK;
            }
            return(result);
        }
 public MarkedProductVM(MarkedProduct product)
     : base(product)
 {
 }