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()); }
public RoomsService() { _writeInDB = new WriteDb(); _readFromDB = new ReadDb(); }
public UserService() { _writeInDB = new WriteDb(); _readFromDB = new ReadDb(); }