Beispiel #1
0
        public ListLandForListVm GetAllLandForList(string userId)
        {
            var lands = _landRepository.GetAllLand(userId).ProjectTo <LandForListVm>(_mapper.ConfigurationProvider)
                        .ToList();
            var landList = new ListLandForListVm()
            {
                Count = lands.Count,
                Lands = lands
            };

            return(landList);
        }