Exemplo n.º 1
0
        public override async Task <Place> Execute(WarehouseStorageContext context)
        {
            context.Places.Remove(this.Parameter);
            await context.SaveChangesAsync();

            return(this.Parameter);
        }
        public override async Task <GoodsReceive> Execute(WarehouseStorageContext context)
        {
            context.GoodsReceiveds.Update(this.Parameter);
            await context.SaveChangesAsync();

            return(this.Parameter);
        }
        public override async Task <InterBranchTransfer> Execute(WarehouseStorageContext context)
        {
            context.InterBranchTransfers.Update(this.Parameter);
            await context.SaveChangesAsync();

            return(this.Parameter);
        }
        public override async Task <Item> Execute(WarehouseStorageContext context)
        {
            await context.Items.AddAsync(this.Parameter);

            await context.SaveChangesAsync();

            return(this.Parameter);
        }