protected async Task ValidSubmit() { if (Model.Id == 0) { var result = await _rankService.AddAsync(Model); await SaveAsync(); } else { var result = await _rankService.UpdateAsync(Model); await SaveAsync(); } }
protected async Task ValidSubmit() { if (Model.Id == 0) { var result = await _rankService.AddAsync(Model); await SaveAsync(); } else { var result = await _rankService.UpdateAsync(Model); await SaveAsync(); } }