public Format Get(Guid id) { if (Exists(id)) { return(FormatDataAccess.Get(id)); } else { throw new ArgumentException("Format doesn't exist " + id); } }
public void AddStyle(Guid formatId, StyleClass styleClass) { if (Exists(formatId)) { if (StyleClassBusinessLogic.Exists(styleClass.Id)) { Format format = FormatDataAccess.Get(formatId); format.AddStyleClass(styleClass); FormatDataAccess.Modify(format); } else { throw new ArgumentException("StyleClass doesn't exist styleClass.Name"); } } else { throw new ArgumentException("StyleClass doesn't exist styleClass.Name"); } }
public IList <Format> Get() { return(FormatDataAccess.Get()); }