Esempio n. 1
0
        public async Task <IActionResult> Index()
        {
            ReadDb readDb = new ReadDb();
            string str    = string.Format("INSERT INTO Position(IdTable, _Name) VALUES('{0}', '{1}')", 1, "manager");

            //CommandType.Text;
            //int y = await readDb.ExecuteDbQuery(str);
            return(View());
        }
Esempio n. 2
0
 public RoomsService()
 {
     _writeInDB  = new WriteDb();
     _readFromDB = new ReadDb();
 }
Esempio n. 3
0
 public UserService()
 {
     _writeInDB  = new WriteDb();
     _readFromDB = new ReadDb();
 }