public List <VMImages> GetHelpImage(string id) { BaseSetDA da = new BaseSetDA(); List <VMImages> imgs = new List <VMImages>(); var result = da.GetHelpConfigByKey(id); //result.ImageUrl = CommonHelper.LinkImageUrl(result.ImageUrl); int begin = result.ImageUrl.IndexOf("/Images"); if (begin > 0) { VMImages img = new VMImages() { imageId = result.HelpConfigId, name = result.Remark, url = result.ImageUrl }; imgs.Add(img); } return(imgs); }
public HelpConfigEntity GetHelpConfigByKey(string id) { BaseSetDA da = new BaseSetDA(); var result = da.GetHelpConfigByKey(id); //result.ImageUrl = CommonHelper.LinkImageUrl(result.ImageUrl); return(result); }