示例#1
0
 public Format Get(Guid id)
 {
     if (Exists(id))
     {
         return(FormatDataAccess.Get(id));
     }
     else
     {
         throw new ArgumentException("Format doesn't exist " + id);
     }
 }
示例#2
0
 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");
     }
 }
示例#3
0
 public IList <Format> Get()
 {
     return(FormatDataAccess.Get());
 }