/// Method Name : ReturnServiceResponse /// Author : Pratik Soni /// Creation Date : 07 Feb 2018 /// Purpose : To return service response from CRM's dictionary response /// Revision : /// </summary> private ServiceResponse <DTO.Move> ReturnServiceResponse(Dictionary <string, string> crmResponse) { if (objCrmUtilities.ContainsNullValue(crmResponse)) { logger.Info(resourceManager.GetString("CRM_STATUS_204")); return(new ServiceResponse <Move> { Message = resourceManager.GetString("CRM_STATUS_204") }); } var validatedResponse = objCRMToDTOMapper.ValidateResponse <Move>(crmResponse); if (validatedResponse.Message != null) { logger.Error(resourceManager.GetString("msgServiceUnavailable")); return(new ServiceResponse <Move> { Message = resourceManager.GetString("msgServiceUnavailable") }); } else if (validatedResponse.Information != null) { logger.Error(resourceManager.GetString("CRM_STATUS_204")); return(new ServiceResponse <Move> { Information = resourceManager.GetString("CRM_STATUS_204") }); } return(objCRMToDTOMapper.MapMoveDetailsResponseToDTO(crmResponse)); }