Beispiel #1
0
        public List <ViewInterestedClass> GetListClassByUId(int uid)
        {
            List <InterestedClass> list = _repository.GetListClassByUId(uid);

            List <ViewInterestedClass> model = new List <ViewInterestedClass>();

            foreach (var item in list)
            {
                model.Add(ViewInterestedClass.ToViewModel(item));
            }
            return(model);
        }