public int insertCarInDB(string[] carString, Image img) { int maxId = int.Parse(getID()) + 1; string[] carString2 = new string[] { maxId.ToString(), carString[0], carString[1], carString[2], carString[3], carString[4], carString[5], carString[6] }; if (dataBaseUtils.insertInDB("Cars", carString2)) { return(maxId); } else { return(-1); } }
public bool addToDB(string[] worker) { return(utils.insertInDB("Users", worker));; }
public bool addToDB(string[] category) { return(dataBaseUtils.insertInDB("Categories", category));; }
public bool addClientToDB(string[] clientString) { return(dataBaseUtils.insertInDB("Clients", clientString)); }
public bool addContractToDB(string[] contractStrings) { return(dataBaseUtils.insertInDB("Contracts", contractStrings)); }