public string UpdatePassword(Stream message)
        {
            try
            {
                UserDetails objInput = JSonHelper.JsonDeserialize<UserDetails>(new StreamReader(message).ReadToEnd());
                if (System.Configuration.ConfigurationManager.AppSettings[objInput.Pin] == null)
                {
                    return "Invalid PIN";
                }
                if (objInput.Pin != null && objInput.Pin.Length <= 0)
                {
                    return "Pin is a required field";

                }
                else
                {
                    UserInfo oUserInfo = new UserInfo();
                    oUserInfo.UserId = Convert.ToInt32(objInput.UserId);
                    oUserInfo.Password = objInput.Password;
                    oUserInfo.UserpasswordChangedDate = DateTime.Now;
                    oUserInfo.pin = System.Configuration.ConfigurationManager.AppSettings[objInput.Pin].ToString();
                    UserBLL oUser = new UserBLL();
                    int i = oUser.UpdatechangepasswordDetails(oUserInfo);

                    return "Update sucessful";

                }
            }
            catch (Exception ex)
            {
                return "An error occured. Please try again later";
            }
        }