public override string GetNameMethod(eMethod method) { if (method == eMethod.Insert) { return("Add"); } return(method.ToString()); }
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)); }
public override string GetNameMethod(eMethod method) { throw new Exception("Class not have method - Tiệp Hoàng"); }
public override string GetNameMethod(eMethod method) { throw new NotImplementedException(); }
public abstract string GetNameMethod(eMethod method);