Пример #1
0
        public ModelResult GetAdvertsings(ModelRequest request)
        {
            var modelResult = new ModelResult();

            modelResult.Data = AdRepository.GetAdvertisings().
                               Select(x => new AdResult
            {
                ID       = x.ID,
                Image    = x.Image,
                Position = x.Position,
                Url      = x.Url
            });
            return(modelResult);
        }