public HttpResponseMessage Report_ClosedReferralsAggregateByMonth(string token, [FromBody] ReportRequestModel request) { try { var clientId = context.GetClientIDBySession(token).FirstOrDefault().ClientID.ToString(); string divisions = getDivisionsForUser(token, clientId); return(Request.CreateResponse(HttpStatusCode.OK, JsonConvert.SerializeObject(context.Report_ClosedReferralsAggregateByMonth(token, request.dateFrom, request.dateTo, request.clientService, divisions)))); } catch (Exception e) { ErrorSignal.FromCurrentContext().Raise(e); return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } }