BetterCms.Module.Pages.Services.DefaultRedirectService.GetAllRedirects C# (CSharp) 메소드

GetAllRedirects() 공개 메소드

Gets the list with all redirects.
public GetAllRedirects ( ) : IList
리턴 IList
        public IList<Redirect> GetAllRedirects()
        {
            var query = unitOfWork
                .Session
                .Query<Redirect>()
                .Where(r => !r.IsDeleted);
            var redirects = query.ToList();

            return redirects;
        }