public ServiceDataResult GetAll() { var samples = repository.AsQueryable() .Select(p => new { p.Id, p.Title }) .ToList(); return(ServiceDataResult.Success(samples)); }