Exemplo n.º 1
0
        public bool LetUserComment(EditProductViewContract editProduct)
        {
            var data = db.EditInfoes.Add(new EditInfo()
            {
                idUser      = editProduct.UserID,
                idInfo      = editProduct.ProductId,
                contentEdit = editProduct.Content,
                dayCreateEI = editProduct.DateCreateEI,
            });

            if (db.SaveChanges() > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 public bool LetUserComment(EditProductViewContract editProduct)
 {
     return(new ProductBus().LetUserComment(editProduct));
 }
Exemplo n.º 3
0
 public bool LetUserComment(EditProductViewContract editProduct)
 {
     editProduct.DateCreateEI = DateTime.Now;
     return(new ProductDao().LetUserComment(editProduct));
 }
Exemplo n.º 4
0
 public bool CommentProductByClient(EditProductViewContract editProduct)
 {
     return(new Responsetory().LetUserComment(editProduct));
 }