public decimal Building_Insert(string Buiding_Name, string Address, string Building_Code, string Notes) { try { Building_DA _Building_DA = new Building_DA(); return(_Building_DA.Building_Insert(Buiding_Name, Address, Building_Code, Notes)); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(-1); } }
public bool Building_Delete(decimal Building_Id) { try { Building_DA _Building_DA = new Building_DA(); return(_Building_DA.Building_Delete(Building_Id)); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(false); } }
public byte[] GetBuildingInEstate(decimal Building_Id) { try { byte[] byteReturn; Building_DA _Building_DA = new Building_DA(); DataSet ds = _Building_DA.GetBuildingInEstate(Building_Id); byteReturn = CompressionHelper.CompressDataSet(ds); return(byteReturn); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(new byte[0]); } }
public byte[] Building_GetAll() { try { byte[] byteReturn; Building_DA _Building_DA = new Building_DA(); DataSet ds = _Building_DA.Building_GetAll(); byteReturn = CompressionHelper.CompressDataSet(ds); return(byteReturn); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(new byte[0]); } }