public void AddError(string uid, JsonApiLink aboutLink, int httpStatusCode, string appErrorCode, string title, string detail, object source, object meta) { if (Errors == null) { Errors = new JsonApiErrors(); } Errors.Add(uid, aboutLink, httpStatusCode, appErrorCode, title, detail, source, meta); }
public void Add(string id, JsonApiLink aboutLink, int httpStatusCode, string appErrorCode, string title, string detail, object source, object meta) { Add(new JsonApiErrorObject { Id = id, Links = new JsonApiErrorLinkObject(aboutLink), Status = httpStatusCode.ToString(), StatusCode = httpStatusCode, Code = appErrorCode, Title = title, Detail = detail, Source = source, Meta = meta }); }
public JsonApiLinksObject(JsonApiLink self = null, JsonApiLink related = null) { Self = self; Related = related; }