public void Insert(int ProductId, string UserName, int Rating, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            ProductRating item = new ProductRating();

            item.ProductId = ProductId;

            item.UserName = UserName;

            item.Rating = Rating;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
 public bool Destroy(object ProductRatingId)
 {
     return(ProductRating.Destroy(ProductRatingId) == 1);
 }
 public bool Delete(object ProductRatingId)
 {
     return(ProductRating.Delete(ProductRatingId) == 1);
 }