public int DeleteValue(ArticleFamily articleFamily) { Bm2s.Connectivity.Common.Article.ArticleFamily connect = new Bm2s.Connectivity.Common.Article.ArticleFamily(); connect.Request.ArticleFamily = articleFamily; connect.Delete(); return connect.Request.ArticleFamily.Id; }
public HtmlString SetValue(ArticleFamily articleFamily) { Bm2s.Connectivity.Common.Article.ArticleFamily connect = new Bm2s.Connectivity.Common.Article.ArticleFamily(); connect.Request.ArticleFamily = articleFamily; connect.Post(); SelectListUtils.ForceRefreshListFamily(); return connect.Response.ArticleFamilies.FirstOrDefault().ToHtmlJson(); }