Esempio n. 1
0
 public async void AddInvent(Invent invent)
 {
     try
     {
         await catalog.AddInventAsync(new Model.Context.Invent
         {
             Id        = invent.Id,
             Date      = invent.Date,
             Quantity  = invent.Quantity,
             ProductId = invent.ProductId
         });
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultCatalog>(new FaultCatalog
         {
             Exception = ex,
             Message   = "Error al agregar al inventario"
         });
     }
 }