예제 #1
0
        public async Task <IActionResult> Entitlement([FromServices] IReportsRepository data, [FromForm] EntitlementSearchParms parms)
        {
            if (!ModelState.IsValid)
            {
                return(new BadRequestResult());
            }
            EntitlementSearchResults searchObject = await data.GetEntitlementSearchResults(parms);

            return(Content(JsonConvert.SerializeObject(searchObject), "application/json"));
        }