Esempio n. 1
0
        /// <summary>
        /// DeleteDirect
        /// </summary>
        /// <param name="assetId">assetId</param>
        /// <param name="companyId">companyId</param>
        public bool DeleteDirect(int assetId, int companyId)
        {
            // delete materials
            AssetSewerMaterial assetSewerMaterial = new AssetSewerMaterial(null);
            assetSewerMaterial.DeleteAllDirect(assetId, companyId);

            // delete sewer
            AssetSewerGateway assetSewerGateway = new AssetSewerGateway(Data);
            assetSewerGateway.Delete(assetId, companyId);

            return true;
        }
Esempio n. 2
0
 // ////////////////////////////////////////////////////////////////////////
 // PUBLIC METHODS
 //
 /// <summary>
 /// InsertDirect
 /// </summary>
 /// <param name="assetId">assetId</param>
 /// <param name="assetSewerType">assetSewerType</param>
 /// <param name="deleted">deleted</param>
 /// <param name="companyId">companyId</param>
 public void InsertDirect(int assetId, string assetSewerType, bool deleted, int companyId)
 {
     AssetSewerGateway assetSewerGateway = new AssetSewerGateway(new DataSet());
     assetSewerGateway.Insert(assetId, assetSewerType, deleted, companyId);
 }