コード例 #1
0
        public APIViewModel GetMainUrl(string id)
        {
            APIViewModel mdl = new APIViewModel();

            string weburl = _webUrlService.GetURL(id);

            if (string.IsNullOrEmpty(weburl))
            {
                mdl.ResultObject = null;
                mdl.Message      = Resource_Fa.DoNotFindInfo;
                mdl.Status       = false;
            }
            else
            {
                mdl.ResultObject = StaticValues.SiteURL + weburl;
                mdl.Message      = Resource_Fa.ResualtOK;
                mdl.Status       = true;
                _webUrlService.IncClick(id);
            }
            return(mdl);
        }