예제 #1
0
        public ServiceDataResult GetAll()
        {
            var samples = repository.AsQueryable()
                          .Select(p => new { p.Id, p.Title })
                          .ToList();

            return(ServiceDataResult.Success(samples));
        }