public UpserterInjection(IUpsertDbSet <T> blogContext) { Dependency = blogContext; }
public async Task <int> Execute(IUpsertDbSet <Blog> blogInserter) { await blogInserter.AddAsync(BlogToInsert); return(await blogInserter.Save()); }