public ControlEntity GetControlEntity(XElement obj) { var control = new ControlEntity(); control.Name = obj.Attribute("name").Value; control.Link = "~/C1" + control.Name + "/Overview.aspx"; control.Title = obj.Attribute("text") != null ? obj.Attribute("text").Value : control.Name; control.Icon = "~/explore/css/images/icons/widget/" + control.Name + ".png"; return control; }
public ControlEntity GetControlEntity(XElement obj) { var control = new ControlEntity(); control.Name = obj.Attribute("name").Value; control.Link = "~/C1" + control.Name + "/Overview.aspx"; control.Title = obj.Attribute("text") != null?obj.Attribute("text").Value : control.Name; control.Icon = "~/explore/css/images/icons/widget/" + control.Name + ".png"; return(control); }