Example #1
0
        public static CheckListDO GetCheckListDO(CheckList checkList)
        {
            CheckListDO checkListDO = new CheckListDO()
            {
                ID            = checkList.ID,
                CheckListDesc = checkList.description
            };

            return(checkListDO);
        }
Example #2
0
        public static CheckList GetCheckList(CheckListDO checkListDO)
        {
            CheckList checkList = new CheckList()
            {
                ID          = checkListDO.ID,
                description = checkListDO.CheckListDesc
            };

            return(checkList);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }