Exemple #1
0
        public async Task <int> SaveAutoAsync(Auto auto)
        {
            string sql = AutoStoredProceduresNames.QueryToSaveAuto;

            return(await Task.Run(() => _sqlServerDataModification.SaveData(sql, auto)));
        }
Exemple #2
0
        public async Task <int> StoreCustomerDataAsync(Customer custObj)
        {
            string sql = SaleStoredProcedureNames.StoreCustomerInformation;

            return(await Task.Run(() => _sqlServerDataModification.SaveData <Customer>(sql, custObj)));
        }