/// <summary>
        /// 注册Api
        /// </summary>
        /// <param name="controllerType"></param>
        public void Register(ApiSingle apiSingle)
        {
            if (ApiSingleRepository.FirstOrDefault(e => e.Name == apiSingle.Name) != null)
            {
                return;
            }

            ApiSingleRepository.Insert(apiSingle);
        }
 public ApiSingle GetApiSingleForControllerName(string controllerName)
 {
     return(ApiSingleRepository.FirstOrDefault(e => e.Name == controllerName));
 }