73 lines
2.6 KiB
C#
73 lines
2.6 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 eva_create_evaluation_detailViewController : Controller
|
|
{
|
|
private ILogger<eva_create_evaluation_detailController> _logger;
|
|
private Ieva_create_evaluation_detailService _repository;
|
|
private Iexternal_employeeService emp;
|
|
private IConfiguration Configuration { get; set; }
|
|
|
|
/// <summary>
|
|
/// Default constructure for dependency injection
|
|
/// </summary>
|
|
/// <param name="repository"></param>
|
|
/// <param name="configuration"></param>
|
|
/// <param name="logger"></param>
|
|
/// <param name="inemp"></param>
|
|
public eva_create_evaluation_detailViewController(
|
|
ILogger<eva_create_evaluation_detailController> logger, Iexternal_employeeService inemp, Ieva_create_evaluation_detailService repository, IConfiguration configuration)
|
|
{
|
|
_logger = logger;
|
|
_repository = repository;
|
|
Configuration = configuration;
|
|
emp = inemp;
|
|
}
|
|
|
|
public IActionResult eva_create_evaluation_detail()
|
|
{
|
|
MyHelper.get_login(HttpContext, emp, Response);
|
|
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
|
return View();
|
|
}
|
|
|
|
public IActionResult eva_create_evaluation_detail_d()
|
|
{
|
|
MyHelper.get_login(HttpContext, emp, Response);
|
|
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
|
return View();
|
|
}
|
|
|
|
//public IActionResult eva_create_evaluation_detail_report()
|
|
//{
|
|
// if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
|
// return View();
|
|
//}
|
|
|
|
//public IActionResult eva_create_evaluation_detail_inline()
|
|
//{
|
|
// 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 });
|
|
}
|
|
}
|
|
}
|
|
|
|
|