public async Task <IActionResult> PutAppUserReport(long id, AppUserReport appUserReport)
        {
            if (id != appUserReport.Id)
            {
                return(BadRequest());
            }

            _context.Entry(appUserReport).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!AppUserReportExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <AppUserReport> > PostAppUserReport(AppUserReport appUserReport)
        {
            if (appUserReport.Id == 0)
            {
                appUserReport.CreatedOn = DateTime.UtcNow;
            }
            _context.AppUserReports.Add(appUserReport);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetAppUserReport), new { id = appUserReport.Id }, appUserReport));
        }