Пример #1
0
 public string DbRead(BuildHomeDBContext c)
 {
     c.Add(new Item()
     {
         ItemName = "Pragiya"
     });
     c.SaveChanges();
     return("this is from database");
 }
Пример #2
0
 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;
 }