예제 #1
0
        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);
            }
        }
예제 #2
0
 public bool addToDB(string[] worker)
 {
     return(utils.insertInDB("Users", worker));;
 }
예제 #3
0
 public bool addToDB(string[] category)
 {
     return(dataBaseUtils.insertInDB("Categories", category));;
 }
예제 #4
0
 public bool addClientToDB(string[] clientString)
 {
     return(dataBaseUtils.insertInDB("Clients", clientString));
 }
예제 #5
0
 public bool addContractToDB(string[] contractStrings)
 {
     return(dataBaseUtils.insertInDB("Contracts", contractStrings));
 }