Example #1
0
        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);
            }
        }