Esempio n. 1
0
        public IHttpActionResult VerifySkillCanLogin(dynamic data)
        {
            string value = token_gen.Authorize_aesdecrpty(data);

            try
            {
                //string value = JsonConvert.SerializeObject(data);
                usercred rootobj = JsonConvert.DeserializeObject <usercred>(value);
                return(Ok(YATChel.VerifySkillCanLogin(rootobj)));
            }
            catch (Exception ex)
            {
                CatchData.Status = 102;
                CatchData.Reason = YATCHelper.ThirdpartyMessage;
                return(Ok(CatchData));
            }
        }
Esempio n. 2
0
        public IHttpActionResult SkillStates(dynamic data)
        {
            string value = token_gen.Authorize_aesdecrpty(data);

            try
            {
                //string value = JsonConvert.SerializeObject(data);
                usercred        rootobj = JsonConvert.DeserializeObject <usercred>(value);
                List <Hearders> headers = new List <Hearders>();
                //headers.Add(new Hearders { key = "key", value = "STATE" });
                return(Ok(YATChel.GetMethod("https://www.apssdc.in/home/dropdownsettings/getdropdowndatawithoutrefid?key=STATE", headers)));
            }
            catch (Exception ex)
            {
                CatchData.Status = 102;
                CatchData.Reason = YATCHelper.ThirdpartyMessage;
                return(Ok(CatchData));
            }
        }
Esempio n. 3
0
        public dynamic VerifySkillCanLogin(usercred root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                var val  = PostDataWithHeaders("https://www.apssdc.in/home/login?username="******"&password="******"&type=" + root.type);
                var data = GetSerialzedData <dynamic>(val);

                obj.Status  = 100;
                obj.Reason  = "Data Loaded Successfully.";
                obj.Details = data;

                return(obj);
            }
            catch (Exception ex)
            {
                Common_YATC_Error(ex.Message.ToString(), "https://www.apssdc.in/home/login?username="******"2");
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                return(obj);
            }
        }