public async Task <bool> SaveSession(List <GraphData> data) { try { foreach (GraphData gd in data) { _ctx.GraphSessions.Add(gd); } await _ctx.SaveChangesAsync(); return(true); } catch (Exception ex) { throw (ex); } }
public async Task <bool> SaveSession(List <GraphData> data) { try { foreach (GraphData gd in data) { _ctx.GraphSessions.Add(gd); } await _ctx.SaveChangesAsync(); return(true); } catch (Exception ex) { throw (ex); } }