/// <summary> /// Gets the configuration details from SharePoint. /// </summary> /// <returns>returns configuration details object.</returns> public static IList <Core.Models.ConfigurationDetails> GetConfigurationDetailsFromSharepoint() { IList <Core.Models.ConfigurationDetails> returnValue = null; try { returnValue = SharePointRepository.GetConfigurationDetails().ToList(); } catch (Exception) { throw; } return(returnValue); }
public IHttpActionResult GetAppConfigs() { var configs = SharePointRepository.GetConfigurationDetails(); return(Ok(configs)); }
/// <summary> /// Gets the configuration details. /// </summary> /// <returns> /// returns string. /// </returns> public JsonResult GetConfigurationDetails() { var returnValue = SharePointRepository.GetConfigurationDetails(); return(this.Json(returnValue, JsonRequestBehavior.AllowGet)); }