public virtual void SaveAsync()
 {
     //Before you save, you need to verify the validity of the data.
     if (GridModel != null)
     {
         repository.SaveAsync(GridModel);
         InitPermissions(this.AuthValue);
         SelectPageIndex = 0;
     }
 }
Exemplo n.º 2
0
        public virtual async Task SaveAsync()
        {
            //Before you save, you need to verify the validity of the data.
            if (GridModel == null)
            {
                return;
            }
            await repository.SaveAsync(GridModel);

            InitPermissions(this.AuthValue);
            await GetPageData(0);

            SelectPageIndex = 0;
        }