public HttpResponseMessage GetClosedPeriodTemplateByLogin(HttpRequestMessage request) { return(GetHttpResponse(request, () => { ClosedPeriodTemplateData[] closedPeriodTemplates = _ExtractionProcessService.GetClosedPeriodTemplateByLogin(User.Identity.Name); return request.CreateResponse <ClosedPeriodTemplateData[]>(HttpStatusCode.OK, closedPeriodTemplates); })); }