Ejemplo n.º 1
0
 public bool Update(UpdateStockPosition item)
 {
     using (Context context = new Context())
     {
         EfStockPositionRepository rep     = new EfStockPositionRepository(context);
         StockPositionConvert      convert = new StockPositionConvert(context);
         return(rep.Update(convert.ToEntity(item)));
     }
 }
Ejemplo n.º 2
0
 public ReadStockPosition Add(CreateStockPosition item)
 {
     using (Context context = new Context())
     {
         EfStockPositionRepository rep     = new EfStockPositionRepository(context);
         StockPositionConvert      convert = new StockPositionConvert(context);
         return(convert.ToRead(rep.Add(convert.ToEntity(item))));
     }
 }