Ejemplo n.º 1
0
        public void Update(CinemaComment entity)
        {
            CinemaComment comment = Context.CinemaComments.First(x => x.Id == entity.Id);

            comment.Comment = entity.Comment;
        }
Ejemplo n.º 2
0
        public void Delete(CinemaComment entity)
        {
            CinemaComment comment = Context.CinemaComments.First(x => x.Id == entity.Id);

            Context.CinemaComments.Remove(comment);
        }
Ejemplo n.º 3
0
 public void Insert(CinemaComment entity)
 {
     Context.CinemaComments.Add(entity);
 }