// GET: LeaveType/Details/5
        public ActionResult Details(int id)
        {
            var model     = _repo.GetByID(id);
            var leavetype = _mapper.Map <LeaveTypeVM>(model);

            return(View(leavetype));
        }
 public async Task <LeaveType> GetByID(int ID)
 {
     return(await _repo.GetByID(ID));
 }