public List <LeaveRequestViewtServiceModel> GetLeaveDetailsForChange(int objLeaverequestId) { List <LeaveRequestViewtServiceModel> listmodel = new List <LeaveRequestViewtServiceModel>(); // listmodel = Mapper.Map < List<DeptLeaveRequestViewtServiceModel> >(_iLeaveRequestRepository.GetLeaveDetailsForChange(objLeaverequestId)); listmodel = Mapper.Map <List <LeaveRequestViewtServiceModel> >(_iLeaveRequestRepository.GetLeaveDetailsForChange(objLeaverequestId)); return(listmodel); }