Exemplo n.º 1
0
        /// <summary>
        /// Gets the feature.
        /// </summary>
        /// <param name="presenter">The presenter.</param>
        /// <param name="projectId">The project identifier.</param>
        /// <returns>feature list</returns>
        public ActionResult GetFeature(ReportPresenter presenter, string projectId)
        {
            if (presenter != null && !string.IsNullOrWhiteSpace(projectId))
            {
                presenter.AssignFeatures(this.lookupService.RetrieveProjectFeatures(Convert.ToInt32(projectId, CultureInfo.CurrentCulture), null));
                return this.Json(presenter.Features);
            }

            return this.Json(string.Empty);
        }