35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using CompanyManagment.App.Contracts.CameraBugReport;
|
|
|
|
namespace ServiceHost.Areas.AdminNew.Pages.BugReport
|
|
{
|
|
public class BugReportPageModel : PageModel
|
|
{
|
|
protected readonly ICameraBugReportApplication _bugReportApplication;
|
|
|
|
public BugReportPageModel(ICameraBugReportApplication bugReportApplication)
|
|
{
|
|
_bugReportApplication = bugReportApplication;
|
|
}
|
|
|
|
public List<CameraBugReportViewModel> BugReports { get; set; } = new();
|
|
public CameraBugReportDetailViewModel BugReportDetails { get; set; }
|
|
|
|
protected List<CameraBugReportViewModel> GetBugReportsList(CameraBugReportSearchModel searchModel)
|
|
{
|
|
return _bugReportApplication.GetAll(searchModel);
|
|
}
|
|
|
|
protected CameraBugReportDetailViewModel GetBugReportDetails(Guid id)
|
|
{
|
|
return _bugReportApplication.GetDetails(id);
|
|
}
|
|
|
|
protected bool IsExist(Guid id)
|
|
{
|
|
return _bugReportApplication.IsExist(id);
|
|
}
|
|
}
|
|
}
|
|
|