public HttpResponseMessage GetMacroEconomicsNPL(HttpRequestMessage request, int Id)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                MacroEconomicsNPL macroeconomicsnpl = _IFRS9Service.GetMacroEconomicsNPL(Id);

                // notice no need to create a seperate model object since MacroEconomicsNPL entity will do just fine
                response = request.CreateResponse <MacroEconomicsNPL>(HttpStatusCode.OK, macroeconomicsnpl);

                return response;
            }));
        }
        public HttpResponseMessage DeleteMacroEconomicsNPL(HttpRequestMessage request, [FromBody] int Id)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                // not that calling the WCF service here will authenticate access to the data
                MacroEconomicsNPL macroeconomicsnpl = _IFRS9Service.GetMacroEconomicsNPL(Id);

                if (macroeconomicsnpl != null)
                {
                    _IFRS9Service.DeleteMacroEconomicsNPL(Id);

                    response = request.CreateResponse(HttpStatusCode.OK);
                }
                else
                {
                    response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No macroeconomicsnpl found under that Id.");
                }

                return response;
            }));
        }
        public HttpResponseMessage UpdateMacroEconomicsNPL(HttpRequestMessage request, [FromBody] MacroEconomicsNPL macroeconomicsnplModel)
        {
            return(GetHttpResponse(request, () =>
            {
                var macroeconomicsnpl = _IFRS9Service.UpdateMacroEconomicsNPL(macroeconomicsnplModel);

                return request.CreateResponse <MacroEconomicsNPL>(HttpStatusCode.OK, macroeconomicsnpl);
            }));
        }