public static UnitList ViewUnit(String UnitID) { try { Icontext objinter = new BALUnit(); UnitList vwunit = (UnitList)objinter.ViewRecord(Convert.ToInt64(UnitID)); return vwunit; } catch (Exception ex) { throw; } }
public static bool UpdateUnit(Unit unit) { Boolean flag = false; try { Icontext objinter = new BALUnit(); flag = objinter.UpdateRecord(unit); } catch (Exception ex) { throw; } return flag; }
public static IEnumerable<DAL.UnitList> UnitList() { try { Icontext objtext = new BALUnit(); IEnumerable<DAL.UnitList> listRecord = (IEnumerable<DAL.UnitList>)objtext.RecordList(); return listRecord; } catch (Exception ex) { throw; } }
public static Unit EditUnit(String UnitID) { try { Icontext objinter = new BALUnit(); Unit unit = (Unit)objinter.EditRecord(Convert.ToInt64(UnitID)); return unit; } catch (Exception ex) { throw; } }
public static Boolean CreateUnit(Unit unit) { Boolean flag = false; try { Icontext objtext = new BALUnit(); flag = objtext.CreateRecord(unit); } catch (Exception ex) { throw; } return flag; }
public static List<SelectListItem> SearchFieldDDList() { ISearchField sobj = new BALUnit(); List<SelectListItem> lstsearchField = sobj.SearchField(); return lstsearchField; }