public string DbRead(BuildHomeDBContext c) { c.Add(new Item() { ItemName = "Pragiya" }); c.SaveChanges(); return("this is from database"); }
public string TestBusinessMethod(string test, BuildHomeDBContext buildHomeDBContext) { (new DataAccessClass()).DbRead(buildHomeDBContext); return("This is from business."); }
public ValuesController(ISampleBusiness sampleBusiness, BuildHomeDBContext buildHomeDBContext) { sb = sampleBusiness; _context = buildHomeDBContext; }