public virtual List <InsteadDeportationsBLL> GetInsteadDeportations() { List <InsteadDeportationsBLL> InsteadDeportationsBLL = new List <InsteadDeportationsBLL>(); List <InsteadDeportations> InsteadDeportations = new InsteadDeportationsDAL().GetInsteadDeportations(); foreach (var item in InsteadDeportations) { InsteadDeportationsBLL.Add(MapInsteadDeportation(item)); } return(InsteadDeportationsBLL); }
public InsteadDeportationsBLL GetByInsteadDeportationID(int id) { InsteadDeportationsBLL InsteadDeportationsBLL = null; InsteadDeportations InsteadDeportation = new InsteadDeportationsDAL().GetInsteadDeportationByInsteadDeportationID(id); if (InsteadDeportation != null) { InsteadDeportationsBLL = MapInsteadDeportation(InsteadDeportation); } return(InsteadDeportationsBLL); }
public virtual List <InsteadDeportationsBLL> GetInsteadDeportations(out int totalRecordsOut, out int recFilterOut) { List <InsteadDeportationsBLL> InsteadDeportationsBLL = new List <InsteadDeportationsBLL>(); List <InsteadDeportations> InsteadDeportations = new InsteadDeportationsDAL() { search = Search, order = Order, orderDir = OrderDir, startRec = StartRec, pageSize = PageSize }.GetInsteadDeportations(out totalRecordsOut, out recFilterOut); foreach (var item in InsteadDeportations) { InsteadDeportationsBLL.Add(MapInsteadDeportation(item)); } return(InsteadDeportationsBLL); }