private static RohsStatus PopulateFromDBDetailsObject(RohsStatusDetails obj) { RohsStatus objNew = new RohsStatus(); objNew.ROHSStatusId = obj.ROHSStatusId; objNew.Name = obj.Name; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_ROHSStatus] /// </summary> public static RohsStatus Get(System.Int32?rohsStatusId) { Rebound.GlobalTrader.DAL.RohsStatusDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.RohsStatus.Get(rohsStatusId); if (objDetails == null) { return(null); } else { RohsStatus obj = new RohsStatus(); obj.ROHSStatusId = objDetails.ROHSStatusId; obj.Name = objDetails.Name; objDetails = null; return(obj); } }
/// <summary> /// DropDown /// Calls [usp_dropdown_ROHSStatus] /// </summary> public static List <RohsStatus> DropDown() { List <RohsStatusDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.RohsStatus.DropDown(); if (lstDetails == null) { return(new List <RohsStatus>()); } else { List <RohsStatus> lst = new List <RohsStatus>(); foreach (RohsStatusDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.RohsStatus obj = new Rebound.GlobalTrader.BLL.RohsStatus(); obj.ROHSStatusId = objDetails.ROHSStatusId; obj.Name = objDetails.Name; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }