/// <summary> /// Get Client ChecklistType Data i.e. week & month effective dates /// </summary> /// <param name="clientCode"></param> /// <returns></returns> public List <ChecklistDataRequestViewModel> GetClientChecklistTypeData(string clientCode) { try { List <ChecklistDataRequest> checklistTypeData = _pendingChecklistRepository.GetClientChecklistTypeData(clientCode); List <ChecklistDataRequestViewModel> checklistTypeViewModelData = new List <ChecklistDataRequestViewModel>(); if (checklistTypeData != null && checklistTypeData.Count > 0) { foreach (ChecklistDataRequest data in checklistTypeData) { ChecklistDataRequestViewModel checklistDataRequestViewModel = new ChecklistDataRequestViewModel(); checklistDataRequestViewModel = BusinessMapper.MappingOpenChecklistBusinessToViewModel(data); checklistTypeViewModelData.Add(checklistDataRequestViewModel); } } return(checklistTypeViewModelData); } catch (Exception ex) { _logger.Log(ex, LogLevel.Error, ex.Message); return(null); } }