public async Task <IActionResult> Edit(int Id) { var reportModel = await _reportService.Get(Id); var reportView = ReportHelpers.ConvertToView(reportModel); ViewData["Spider"] = await _spiderService.GetAll(); return(View(reportView)); }
public async Task <IActionResult> Details(int id) { ViewData["Spider"] = await _spiderService.GetAll(); var report = await _reportService.Get(id); await _reportService.IncrementReportViews(id); return(View(ReportHelpers.ConvertToView(report))); }