Exemplo n.º 1
0
        public EntityResult <List <Blog> > GetListByCountDescending(int count, Expression <Func <Blog, bool> > filter = null, params string[] includeList)
        {
            try
            {
                var blogs = _blogDal.GetListByCountDescending(count, filter, includeList);

                if (blogs != null)
                {
                    return(new EntityResult <List <Blog> >(blogs, "Başarılı", ResultState.Success));
                }
                else
                {
                    return(new EntityResult <List <Blog> >(null, "Hata Oluştu", ResultState.Warning));
                }
            }
            catch (Exception ex)
            {
                return(new EntityResult <List <Blog> >(null, "Database Hatası " + ex.ToInnestException(), ResultState.Error));
            }
        }