public ResponseLike AddWithCommit(ResponseLike newLike) { Likes.Add(newLike); _context.SaveChanges(); return(newLike); }
public Response AddResponseWithCommit(Response newResponse) { _context.Add(newResponse); _context.SaveChanges(); return(newResponse); }
public Post AddWithCommit(Post newPost) { _context.Add(newPost); _context.SaveChanges(); return(newPost); }
public void Commit() { _context.SaveChanges(); }