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