public StyleClass Get(Guid id) { if (Exists(id)) { return(StyleClassDataAccess.Get(id)); } else { throw new ArgumentException("Id doesn't exist " + id); } }
public void AddStyle(Guid styleClassId, Style style) { if (Exists(styleClassId)) { if (StyleBusinessLogic.Exists(style.Name)) { StyleClass styleClass = StyleClassDataAccess.Get(styleClassId); styleClass.AddStyle(style); StyleClassDataAccess.Modify(styleClass); } else { throw new ArgumentException("Style doesn't exist " + style.Name); } } else { throw new ArgumentException("StyleClass doesn't exist " + styleClassId); } }
public IList <StyleClass> Get() { return(StyleClassDataAccess.Get()); }