Example #1
0
        // GET: LeaveAllocation/Details/5
        public async Task <ActionResult> Details(string id)
        {
            var varEmployeeVM = _IMapper.Map <EmployeeVMClass>(await _userManager.FindByIdAsync(id));

            var Period = DateTime.Now.Year;

            var varEmployeeLeaveAllocationsVM = _IMapper.Map <List <LeaveAllocationVMClass> >(await _ILeaveAllocationRepository.getEmployeeLeaveAllocations(id));

            ViewAllocationsVMClass locViewAllocationsVMClass = new ViewAllocationsVMClass
            {
                prop_clsEmployeeVMClass        = varEmployeeVM,
                prop_lstLeaveAllocationVMClass = varEmployeeLeaveAllocationsVM
            };

            return(View(locViewAllocationsVMClass));
        }