public Entities.Producto GetOne(int Id)
        {
            Entities.Producto result = null;

            var context = new ProductosDBContext();

            result = (from c in context.Productos.Include("Reviews")
                        where c.Id == Id
                        select c).FirstOrDefault();

            return result;
        }
 public void CrearReview(Entities.Review Model)
 {
     var context = new ProductosDBContext();
     context.Reviews.Add(Model);
     context.SaveChanges();
 }
 public void EliminarReview(Entities.Review Model)
 {
     var context = new ProductosDBContext();
     context.Reviews.Remove(Model);
     context.SaveChanges();
 }
 public void Crear(Entities.Producto Model)
 {
     var context = new ProductosDBContext();
     context.Productos.Add(Model);
     context.SaveChanges();
 }