Exemplo n.º 1
0
        public async Task <TData <string> > SaveForm(StockStorageEntity entity)
        {
            TData <string> obj = new TData <string>();
            await stockStorageService.SaveForm(entity);

            obj.Data = entity.Id.ParseToString();
            obj.Tag  = 1;
            return(obj);
        }
Exemplo n.º 2
0
        public async Task SaveForm(StockStorageEntity entity)
        {
            if (entity.Id.IsNullOrZero())
            {
                await entity.Create();

                await this.BaseRepository().Insert(entity);
            }
            else
            {
                await entity.Modify();

                await this.BaseRepository().Update(entity);
            }
        }
        public async Task <ActionResult> SaveFormJson(StockStorageEntity entity)
        {
            TData <string> obj = await stockStorageBLL.SaveForm(entity);

            return(Json(obj));
        }