Ejemplo n.º 1
0
 public override string GetNameMethod(eMethod method)
 {
     if (method == eMethod.Insert)
     {
         return("Add");
     }
     return(method.ToString());
 }
Ejemplo n.º 2
0
        public ServiceResponse Call(eMethod method, string json)
        {
            var url      = cnf.Read(Config.eKeys.URL_SIGIRH.ToString()) + _pagi;
            var bte_resp = Http.Post(url, new NameValueCollection()
            {
                { "user", _user }, { "pass", _pass }, { "metodo", method.ToString() }, { "json", json }
            });

            if (bte_resp == null)
            {
                return(null);
            }
            var str_json = System.Text.Encoding.UTF8.GetString(bte_resp);

            return(JsonConvert.DeserializeObject <ServiceResponse>(str_json));
        }
Ejemplo n.º 3
0
 public override string GetNameMethod(eMethod method)
 {
     throw new Exception("Class not have method - Tiệp Hoàng");
 }
Ejemplo n.º 4
0
 public override string GetNameMethod(eMethod method)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public abstract string GetNameMethod(eMethod method);