Beispiel #1
0
        public override void DeleteRecord(DeletingParameter Paras)
        {
            int        CompanyID = ((CompanyEditListModel)EditRecordDataSource).CompanyID;
            tblCompany SaveModel = DALObject.FindSaveModelByPrimeKey(CompanyID);

            if (SaveModel != null && SaveModel.CompanyLogoFileName != null)
            {
                try
                {
                    File.Delete(SaveModel.CompanyLogoFileName);
                }
                catch (Exception) { }
            }
            //--
            Paras.DeletingResult = DALObject.DeleteRecord(CompanyID);
            //--
            base.DeleteRecord(Paras);
        }
Beispiel #2
0
 public void DeleteRecord(int ID)
 {
     objCompanyDAL.DeleteRecord(ID);
 }