private void updateHosts() { if (!UcConfig.ApiUpdateHosts) { writeForbidden(); } var hosts = new UcHosts(Args.FormData); writeEnd(UpdateHosts(hosts)); }
protected string UpdateHosts() { if (!_ucConfig.ApiUpdateHosts) { return(API_RETURN_FORBIDDEN); } var hosts = new UcHosts(this.FormData); var temp = this._ucApi.UpdateHosts(hosts); return(Write(temp)); }
public override ApiReturn UpdateHosts(UcHosts hosts) { throw new NotImplementedException(); }
public abstract ApiReturn UpdateHosts(UcHosts hosts);
public override ApiReturn UpdateHosts(UcHosts hosts) { Console.WriteLine($"{nameof(UpdateHosts)}"); return(ApiReturn.Success); }