public PathwayDO GetPathway(int PathwayID) { PathwayDO PathwayDO = new PathwayDO(); try { PathwayDO = pathwayRepository.GetEntity(PathwayID); } catch (Exception ex) { Debug.WriteLine("Exception Occured in GetInspections method due to " + ex.Message); } return(PathwayDO); }
public static IEnumerable <PathwayDO> GetMasterPathwayDO(IEnumerable <Model.ServiceModel.MasterPathway> pathways) { List <PathwayDO> pathwayDO = new List <PathwayDO>(); foreach (var pathway in pathways) { PathwayDO pathDO = new PathwayDO() { ID = pathway.PathwayID, PathwayDesc = pathway.PathwayDesc }; pathwayDO.Add(pathDO); } return(pathwayDO); }