public int ManageDelete(Guid id) { using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope()) { try { BuildingsBLL buildingsBLL = new BuildingsBLL(); BuildingsDataBLL buildingsDataBLL = new BuildingsDataBLL(); BuildingMonthModifyCountBLL buildingMonthModifyCountBLL = new BuildingMonthModifyCountBLL(); BuildingMonthInfoDataBLL buildingMonthInfoDataBLL = new BuildingMonthInfoDataBLL(); BuildingMonthInfoBLL buildingMonthInfoBLL = new BuildingMonthInfoBLL(); buildingMonthModifyCountBLL.ManageDeleteByBuildingID(id); buildingMonthInfoDataBLL.ManageDeleteByBuildingID(id); buildingMonthInfoBLL.ManageDeleteByBuildingID(id); buildingsBLL.ManageDelete(id); buildingsDataBLL.ManageDelete(id); BaseDb.Delete(id); scope.Complete(); return(1); } catch (Exception ex) { return(0); } } }
public virtual bool Delete <T>(out object resultData) { return(_service.Delete <T>(out resultData)); }
public int ManageDelete(Guid id) { return(BaseDb.Delete(id)); }