コード例 #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());
        }
コード例 #2
0
 public RoomsService()
 {
     _writeInDB  = new WriteDb();
     _readFromDB = new ReadDb();
 }
コード例 #3
0
 public UserService()
 {
     _writeInDB  = new WriteDb();
     _readFromDB = new ReadDb();
 }