public async Task Insert(Graph graph, string text) { Guid blobId = await datastoreService.InsertBlob(text); graph.BlobId = blobId; await context.AddAsync(graph); await context.SaveChangesAsync(); }
public async Task Insert(Models.Program program, string text) { Guid blobId = await datastoreService.InsertBlob(text); program.BlobId = blobId; await context.AddAsync(program); await context.SaveChangesAsync(); }