Exemple #1
0
        public GridDefinition GetGridDefinition(string url, StringToken title = null)
        {
            var userId = _sessionContext.GetUserId();
            var user   = _repository.Find <User>(userId);

            return(new GridDefinition
            {
                Url = url,
                Title = title != null?title.ToString() : "",
                            Columns = BuildGrid().GetGridColumns(user)
            });
        }