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); } }
public bool LetUserComment(EditProductViewContract editProduct) { return(new ProductBus().LetUserComment(editProduct)); }
public bool LetUserComment(EditProductViewContract editProduct) { editProduct.DateCreateEI = DateTime.Now; return(new ProductDao().LetUserComment(editProduct)); }
public bool CommentProductByClient(EditProductViewContract editProduct) { return(new Responsetory().LetUserComment(editProduct)); }