private static OfferStatus PopulateFromDBDetailsObject(OfferStatusDetails obj) { OfferStatus objNew = new OfferStatus(); objNew.OfferStatusId = obj.OfferStatusId; objNew.Name = obj.Name; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_OfferStatus] /// </summary> public static OfferStatus Get(System.Int32?offerStatusId) { Rebound.GlobalTrader.DAL.OfferStatusDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.OfferStatus.Get(offerStatusId); if (objDetails == null) { return(null); } else { OfferStatus obj = new OfferStatus(); obj.OfferStatusId = objDetails.OfferStatusId; obj.Name = objDetails.Name; objDetails = null; return(obj); } }
/// <summary> /// DropDown /// Calls [usp_dropdown_OfferStatus] /// </summary> public static List <OfferStatus> DropDown() { List <OfferStatusDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.OfferStatus.DropDown(); if (lstDetails == null) { return(new List <OfferStatus>()); } else { List <OfferStatus> lst = new List <OfferStatus>(); foreach (OfferStatusDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.OfferStatus obj = new Rebound.GlobalTrader.BLL.OfferStatus(); obj.OfferStatusId = objDetails.OfferStatusId; obj.Name = objDetails.Name; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }