public IActionResult ViewDLForm([FromRoute] int id)
        {
            Employee employee = empService.GetEmployeeById(id);

            DelegationViewModel dVModel = new DelegationViewModel();

            dVModel.DepartmentHead = empService.FindDeptHead(employee);
            dVModel.employee       = employee;
            dVModel.dForm          = delegationService.FindDelegationForm(id);
            return(View("DelegateView", dVModel));
        }
        public IActionResult ViewDLForm([FromRoute] int id)
        {
            empCheck = JsonConvert.DeserializeObject <Employee>(HttpContext.Session.GetString("employee")) as Employee;

            DelegationViewModel dVModel = new DelegationViewModel();

            dVModel.DepartmentHead = empService.FindDeptHead(empCheck);
            dVModel.employee       = empCheck;
            dVModel.dForm          = delService.FindDelegationForm(id);
            return(View("DelegateView", dVModel));
        }