56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using TodoAPI2.Models;
|
|
using STAFF_API.Models;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.Extensions.Configuration;
|
|
using TodoAPI2.Controllers;
|
|
|
|
namespace TodoAPI2.Controllers
|
|
{
|
|
public class rep_eva_self_review_allViewController : Controller
|
|
{
|
|
private ILogger<rep_eva_self_review_allController> _logger;
|
|
private Irep_eva_self_review_allService _repository;
|
|
private IConfiguration Configuration { get; set; }
|
|
private Iexternal_employeeService emp;
|
|
|
|
/// <summary>
|
|
/// Default constructure for dependency injection
|
|
/// </summary>
|
|
/// <param name="repository"></param>
|
|
/// <param name="configuration"></param>
|
|
/// <param name="inemp"></param>
|
|
/// <param name="logger"></param>
|
|
public rep_eva_self_review_allViewController(ILogger<rep_eva_self_review_allController> logger, Irep_eva_self_review_allService repository,
|
|
IConfiguration configuration, Iexternal_employeeService inemp)
|
|
{
|
|
_logger = logger;
|
|
_repository = repository;
|
|
Configuration = configuration;
|
|
emp = inemp;
|
|
}
|
|
|
|
|
|
public IActionResult rep_eva_self_review_all_report()
|
|
{
|
|
MyHelper.get_login(HttpContext, emp, Response);
|
|
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
|
return View();
|
|
}
|
|
|
|
|
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
|
public IActionResult Error()
|
|
{
|
|
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
|
}
|
|
}
|
|
}
|
|
|
|
|