public FlowwData CreateData(int flowId, string content = null) { var entry = new FlowwData { FlowwId = flowId, Content = content }; DB.Floww_Datas.Add(entry); return(entry); }
public int Save(FlowwData data) { DB.Floww_Datas.Add(data); DB.SaveChanges(); return(data.ID); }