Пример #1
0
 public override string GetNameMethod(eMethod method)
 {
     if (method == eMethod.Insert)
     {
         return("Add");
     }
     return(method.ToString());
 }
Пример #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));
        }
Пример #3
0
 public override string GetNameMethod(eMethod method)
 {
     throw new Exception("Class not have method - Tiệp Hoàng");
 }
Пример #4
0
 public override string GetNameMethod(eMethod method)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public abstract string GetNameMethod(eMethod method);