public Message AddMessageWithCommit(Message newMessage) { _context.Add(newMessage); _context.SaveChanges(); return(newMessage); }
public Response AddResponseWithCommit(Response newResponse) { _context.Add(newResponse); _context.SaveChanges(); return(newResponse); }
public Post AddWithCommit(Post newPost) { _context.Add(newPost); _context.SaveChanges(); return(newPost); }