public IQueryable <TodoItemDto> Get() { var userName = User.Identity.Name; tracer.TraceInformation("Getting tUdUs..."); return(repository.GetAll().Where(t => t.Owner == userName).OrderBy(o => o.Created).Map()); }
private void TraceResponse(HttpResponseMessage response) { var builder = new StringBuilder(); builder.AppendLine(); builder.AppendFormat("HTTP/{0}.{1} {2} {3}", response.Version.Major, response.Version.Minor, (int)response.StatusCode, response.ReasonPhrase); builder.AppendLine(); builder.AppendLine("Date: " + DateTime.Now.ToString("r")); AddHeaders(builder, response.Headers); if (response.Content != null) { AddHeaders(builder, response.Content.Headers); } tracer.TraceInformation(builder.ToString()); if (response.Content != null) { tracer.TraceVerbose(Environment.NewLine + response.Content.ReadAsString()); } }