public static CredentialExtnDTO MappingDCtoDTO(CredentialExtnDC credentialDC)
        {
            MapperConfiguration configDCtoDTO = new MapperConfiguration(cfg => {
                cfg.CreateMap <CredentialExtnDC, CredentialExtnDTO>();
            });
            IMapper iMapper = configDCtoDTO.CreateMapper();

            return(iMapper.Map <CredentialExtnDC, CredentialExtnDTO>(credentialDC));
        }
 public bool AddUser(CredentialExtnDC credentialDC)
 {
     try
     {
         var credentialDTO = MappingCredentialExtn.MappingDCtoDTO(credentialDC);
         return(_bll.AddUser(credentialDTO));
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.ToString());
     }
 }