61 lines
2.2 KiB
C#
61 lines
2.2 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_detail_firstdocViewController : Controller
|
|
{
|
|
private ILogger<eva_create_evaluation_detail_firstdocController> _logger;
|
|
private Ieva_create_evaluation_detail_firstdocService _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="inemp"></param>
|
|
/// <param name="logger"></param>
|
|
public eva_create_evaluation_detail_firstdocViewController(ILogger<eva_create_evaluation_detail_firstdocController> logger,
|
|
Ieva_create_evaluation_detail_firstdocService repository, IConfiguration configuration, Iexternal_employeeService inemp)
|
|
{
|
|
_logger = logger;
|
|
_repository = repository;
|
|
Configuration = configuration;
|
|
emp = inemp;
|
|
}
|
|
|
|
public IActionResult eva_create_evaluation_detail_firstdoc()
|
|
{
|
|
MyHelper.get_login(HttpContext, emp, Response);
|
|
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
|
return View();
|
|
}
|
|
|
|
public IActionResult eva_create_evaluation_detail_firstdoc_d()
|
|
{
|
|
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 });
|
|
}
|
|
}
|
|
}
|
|
|
|
|