Exemplo n.º 1
0
 public static async Task SetAllReferences(this IUnitOfWork unitOfWork, InsertOrderReferences model)
 => await ReferenceHelper.SetAllReferences(unitOfWork, model, (@ref, id) => @ref.Orders.Add(id));
Exemplo n.º 2
0
 public static async Task SetAllReferences(this IUnitOfWork unitOfWork, DeletedOrderReference model)
 => await ReferenceHelper.SetAllReferences(unitOfWork, model, (@ref, id) => @ref.Orders.Remove(id));