private static StockLogReason PopulateFromDBDetailsObject(StockLogReasonDetails obj) { StockLogReason objNew = new StockLogReason(); objNew.StockLogReasonId = obj.StockLogReasonId; objNew.Name = obj.Name; objNew.ClientNo = obj.ClientNo; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_StockLogReason] /// </summary> public static StockLogReason Get(System.Int32?stockLogReasonId) { Rebound.GlobalTrader.DAL.StockLogReasonDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLogReason.Get(stockLogReasonId); if (objDetails == null) { return(null); } else { StockLogReason obj = new StockLogReason(); obj.StockLogReasonId = objDetails.StockLogReasonId; obj.Name = objDetails.Name; obj.ClientNo = objDetails.ClientNo; objDetails = null; return(obj); } }
/// <summary> /// DropDown /// Calls [usp_dropdown_StockLogReason] /// </summary> public static List <StockLogReason> DropDown(System.Int32?clientNo) { List <StockLogReasonDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLogReason.DropDown(clientNo); if (lstDetails == null) { return(new List <StockLogReason>()); } else { List <StockLogReason> lst = new List <StockLogReason>(); foreach (StockLogReasonDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.StockLogReason obj = new Rebound.GlobalTrader.BLL.StockLogReason(); obj.StockLogReasonId = objDetails.StockLogReasonId; obj.Name = objDetails.Name; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }