/// <summary>
        /// Check for user with same email id and pass ref id
        /// </summary>
        /// <param name="userMl"></param>
        /// <returns></returns>
        static int CheckForDuplicate(UsersModel userMl)
        {
            StringBuilder objStringBuilderError = new StringBuilder();
            int duplicateDevice = 0;        //Cannot remove initialization of variable to zero.giving error "Use of unassigned local variable 'duplicateDevice'"
            try
            {
                using (JetstreamClient objMainServiceClient = new JetstreamClient())
                {
                    if (objMainServiceClient.GetUserModelByPassRfId(userMl) > 0)
                    {
                        duplicateDevice = 1;
                    }
                    else if (objMainServiceClient.GetUserModelByEmailId(userMl) > 0)
                    {
                        duplicateDevice = 2;
                    }
                }
            }
            catch (FaultException<ServiceData> fex)
            {
                objStringBuilderError.AppendLine("In method : CheckForDuplicate(UsersModel userMl) :: UserController");
                objStringBuilderError.AppendFormat("ErrorMessage::{0} {1}", fex.Detail.ErrorMessage, Environment.NewLine);
                objStringBuilderError.AppendFormat("ErrorDetails::{0} {1}", Environment.NewLine, fex.Detail.ErrorDetails);
                SaveLogger.SaveLoggerError(objStringBuilderError.ToString());
            }
            catch (Exception ex)
            {
                objStringBuilderError.AppendLine("In method : CheckForDuplicate(UsersModel userMl) :: UserController");
                objStringBuilderError.AppendFormat("ErrorMessage::{0} {1}", ex.Message, Environment.NewLine);
                objStringBuilderError.AppendFormat("ErrorDetails::{0} {1}", Environment.NewLine, ex.ToString());

                SaveLogger.SaveLoggerError(objStringBuilderError.ToString());
            }
            return duplicateDevice;
        }