public FormTO Add(FormTO Entity) { if (Entity is null) { throw new ArgumentNullException(nameof(Entity)); } return(evaluationContext.Forms .Add(Entity.ToEF()) .Entity .ToTransfertObject()); }
public FormTO Update(FormTO Entity) { if (Entity is null) { throw new Exception(); } return(evaluationContext .Forms .Update(Entity.ToEF()) .Entity .ToTransfertObject()); }