public static Contract ViewContract(String ContractID) { try { Icontext objinter = new BALContract(); Contract contract = (Contract)objinter.ViewRecord(Convert.ToInt64(ContractID)); return contract; } catch (Exception ex) { throw; } }
public static bool UpdateContract(Contract contract) { Boolean flag = false; try { Icontext objinter = new BALContract(); flag = objinter.UpdateRecord(contract); } catch (Exception ex) { throw; } return flag; }
public static IEnumerable<DAL.ContractList> ContractList(String Field, String Value) { try { ISearchResult objtext = new BALContract(); IEnumerable<DAL.ContractList> listRecord = (IEnumerable<DAL.ContractList>)objtext.SearchResultList(Field, Value); return listRecord; } catch (Exception ex) { throw; } }
public static Boolean CreateContract(Contract contract) { Boolean flag = false; try { Icontext objtext = new BALContract(); flag = objtext.CreateRecord(contract); } catch (Exception ex) { throw; } return flag; }
public static IEnumerable<DAL.ContractList> ContractList() { try { Icontext objtext = new BALContract(); IEnumerable<DAL.ContractList> listRecord = (IEnumerable<DAL.ContractList>)objtext.RecordList(); return listRecord; } catch (Exception ex) { throw; } }