public async Task <TData <string> > SaveForm(STD_Stream_CameraEntity entity)
        {
            TData <string> obj = new TData <string>();
            await sTD_Stream_CameraService.SaveForm(entity);

            obj.Data = entity.Id.ParseToString();
            obj.Tag  = 1;
            return(obj);
        }
 public async Task SaveForm(STD_Stream_CameraEntity entity)
 {
     if (entity.Id.IsNullOrZero())
     {
         entity.Create();
         await this.BaseRepository().Insert(entity);
     }
     else
     {
         await this.BaseRepository().Update(entity);
     }
 }