Ejemplo n.º 1
0
        public bool Login()
        {
            bool   sendDataStatus = false;
            string url            = $"{_baseurl}index.php?controller=authentication";

            try
            {
                Dictionary <string, string> sendData = new Dictionary <string, string>()
                {
                    { "email", _user },
                    { "passwd", _pswd }
                };

                _web.SendDataToService(url, sendData);
                sendDataStatus = true;

                return(sendDataStatus);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }