Ejemplo n.º 1
0
 public static ProductSuppliedViewModel Get(IProductSupplied obj)
 {
     return(new ProductSuppliedViewModel
     {
         Id = obj.Id,
         PartNumber = obj.ProductStock?.Code,
         ProductCode = obj.ProductStock?.Product?.Code,
         Type = obj.ProductStock?.Product?.Type,
     });
 }
 public void Save(IProductSupplied obj)
 {
     obj.Id = MemoryContext.IdInternal;
     Context.ProductsSupplied.Add(obj);
 }
 public void Save(IProductSupplied obj)
 {
     base.Edit((ProductSupply)obj.ProductSupply);
 }