Пример #1
0
        public bool UpdateProduct(Product product)
        {
            bool isSuccess;
            List <ProcParameters> procParams = new List <ProcParameters>();

            procParams.Add(new ProcParameters("@ID", product.Id.ToString(), DbType.Int32, ParameterDirection.Input));
            procParams.Add(new ProcParameters("@Name", product.Name, DbType.String, ParameterDirection.Input));
            isSuccess = sqlConn.UpdateRecord("Products_CRUD", procParams);

            return(isSuccess);
        }