Пример #1
0
 public FormTO Add(FormTO Entity)
 {
     if (Entity is null)
     {
         throw new ArgumentNullException(nameof(Entity));
     }
     return(evaluationContext.Forms
            .Add(Entity.ToEF())
            .Entity
            .ToTransfertObject());
 }
Пример #2
0
        public FormTO Update(FormTO Entity)
        {
            if (Entity is null)
            {
                throw new Exception();
            }

            return(evaluationContext
                   .Forms
                   .Update(Entity.ToEF())
                   .Entity
                   .ToTransfertObject());
        }