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); }
public void DeleteRecord(int ID) { objCompanyDAL.DeleteRecord(ID); }