public static EnergyMaster ViewEnergy(String energyID) { try { Icontext objinter = new BALEnergy(); EnergyMaster energy = (EnergyMaster)objinter.ViewRecord(Convert.ToInt64(energyID)); return energy; } catch (Exception ex) { throw; } }
public static IEnumerable<DAL.EnergyList> EnergyList(String Field, String Value) { try { ISearchResult objtext = new BALEnergy(); IEnumerable<DAL.EnergyList> listRecord = (IEnumerable<DAL.EnergyList>)objtext.SearchResultList(Field, Value); return listRecord; } catch (Exception ex) { throw; } }
public static bool UpdateEnergy(EnergyMaster energy) { Boolean flag = false; try { Icontext objinter = new BALEnergy(); flag = objinter.UpdateRecord(energy); } catch (Exception ex) { throw; } return flag; }
public static IEnumerable<DAL.EnergyList> EnergyList() { try { Icontext objtext = new BALEnergy(); IEnumerable<DAL.EnergyList> listRecord = (IEnumerable<DAL.EnergyList>)objtext.RecordList(); return listRecord; } catch (Exception ex) { throw; } }