public T GetById(U Id) { string url = UrlBuilder.BuildIdQuery(Url, Id); return(HttpHelper.CallAPI <T, T>(url, "GET")); }
public void Update(T entity) { string url = UrlBuilder.BuildIdQuery(Url, entity.Id); HttpHelper.CallAPI <T, T>(url, "PATCH", entity); }
public void Delete(T entity) { string url = UrlBuilder.BuildIdQuery(Url, entity.Id); HttpHelper.CallAPI <object, T>(url, "DELETE", entity); }