Beispiel #1
0
        public async Task <TData <string> > SaveForm(StoragerackEntity entity)
        {
            TData <string> obj = new TData <string>();
            await storagerackService.SaveForm(entity);

            obj.Data = entity.Id.ParseToString();
            obj.Tag  = 1;
            return(obj);
        }
Beispiel #2
0
        public async Task SaveForm(StoragerackEntity 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(StoragerackEntity entity)
        {
            TData <string> obj = await storagerackBLL.SaveForm(entity);

            return(Json(obj));
        }