コード例 #1
0
 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;
     }
 }
コード例 #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;
        }