Exemple #1
0
        public async Task <IActionResult> Accounts([FromServices] IReportsRepository data, [FromForm] ReportParms parms)
        {
            if (!ModelState.IsValid)
            {
                return(new BadRequestResult());
            }
            ReportResults results = await data.GetAccountSearchResults(parms);

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