public static CheckListDO GetCheckListDO(CheckList checkList) { CheckListDO checkListDO = new CheckListDO() { ID = checkList.ID, CheckListDesc = checkList.description }; return(checkListDO); }
public static CheckList GetCheckList(CheckListDO checkListDO) { CheckList checkList = new CheckList() { ID = checkListDO.ID, description = checkListDO.CheckListDesc }; return(checkList); }
public static IEnumerable <CheckListDO> GetMasterCheckListDO(IEnumerable <Model.ServiceModel.MasterCheckList> checkListItems) { List <CheckListDO> checkListDO = new List <CheckListDO>(); foreach (var checkList in checkListItems) { CheckListDO chkDO = new CheckListDO() { ID = checkList.CheckListID, CheckListDesc = checkList.CheckListDesc }; checkListDO.Add(chkDO); } return(checkListDO); }
public CheckList GetCheckList(int checkListID) { CheckList checkList = new CheckList(); try { CheckListDO checkListDO = checkListRepository.GetEntity(checkListID); if (checkListDO != null) { checkList = Converter.GetCheckList(checkListDO); } } catch (Exception ex) { Debug.WriteLine("Exception Occured in GetCheckList method due to " + ex.Message); } return(checkList); }