Example #1
0
        // GET: LeaveType
        public ActionResult Index( )
        {
            var listLeaveTypes = _repository.FindAll().ToList();
            var model          = _mapper.Map <List <LeaveTypeManager>, List <LeaveTypeModel> >(listLeaveTypes);

            return(View(model));
        }
Example #2
0
        public ActionResult Index()
        {
            var listLeaveTypes = _repository.FindAll().ToList();
            var model          = _mapper.Map <List <LeaveTypeManager>, List <LeaveTypeModel> >(listLeaveTypes);

            CreateAlocationViewModel modelView = new CreateAlocationViewModel
            {
                leaveTypeManager = model
            };

            return(View(modelView));
        }