public APIViewModel GetInfo(string id) { APIViewModel mdl = new APIViewModel(); var weburl = _webUrlService.GetUrlShort(id); if (weburl == null) { mdl.ResultObject = null; mdl.Message = Resource_Fa.DoNotFindInfo; mdl.Status = false; } else { mdl.ResultObject = weburl; mdl.Message = Resource_Fa.ResualtOK; mdl.Status = true; } return(mdl); }