Beispiel #1
0
        /// <summary>
        /// Gets a SEO code and inserts it into a suitable model for the partial view.
        /// </summary>
        /// <param name="term">The SEO code.</param>
        /// <returns>Partial view</returns>
        public ActionResult GetNewSeoCode(string term)
        {
            var socioEconomicObjective = _socioEconomicObjectiveRepository.GetSocioEconomicObjective(term);

            if (socioEconomicObjective == null)
            {
                return(new EmptyResult());
            }

            var newRow = new ClassificationBase {
                Id = 0, Code = socioEconomicObjective
            };

            return(PartialView("_SocioEconomicObjective", newRow));
        }
Beispiel #2
0
        /// <summary>
        /// Gets a FoR code and inserts it into a suitable model for the partial view.
        /// </summary>
        /// <param name="term">The FoR code.</param>
        /// <returns>Partial view</returns>
        public ActionResult GetNewForCode(string term)
        {
            var fieldOfResearch = _fieldOfResearchRepository.GetFieldOfResearch(term);

            if (fieldOfResearch == null)
            {
                return(new EmptyResult());
            }

            var newRow = new ClassificationBase {
                Id = 0, Code = fieldOfResearch
            };

            return(PartialView("_FieldOfResearch", newRow));
        }