Beispiel #1
0
 public ReadStockPosition Remove(int id)
 {
     using (Context context = new Context())
     {
         EfStockPositionRepository rep     = new EfStockPositionRepository(context);
         StockPositionConvert      convert = new StockPositionConvert(context);
         return(convert.ToRead(rep.Remove(id)));
     }
 }
Beispiel #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))));
     }
 }