public void Update(CinemaComment entity) { CinemaComment comment = Context.CinemaComments.First(x => x.Id == entity.Id); comment.Comment = entity.Comment; }
public void Delete(CinemaComment entity) { CinemaComment comment = Context.CinemaComments.First(x => x.Id == entity.Id); Context.CinemaComments.Remove(comment); }
public void Insert(CinemaComment entity) { Context.CinemaComments.Add(entity); }