protected async Task CreateItem() { if (GridComponent.Grid.CreateConfirmation && _code != _confirmationCode) { _shouldRender = true; Error = Strings.ConfirmCodeError; return; } try { Error = ""; ColumnErrors = new QueryDictionary <string>(); _tabGroups = null; await GridComponent.CreateItem(this); } catch (GridException e) { _shouldRender = true; Error = string.IsNullOrWhiteSpace(e.Code) ? e.Message : e.Code + " - " + e.Message; } catch (Exception e) { Console.WriteLine(e.Message); _shouldRender = true; Error = Strings.CreateError; } }
protected async Task CreateItem() { try { await GridComponent.CreateItem(this); } catch (Exception) { Error = Strings.CreateError; } }
protected async Task CreateItem() { try { await GridComponent.CreateItem(this); } catch (GridException e) { _shouldRender = true; Error = string.IsNullOrWhiteSpace(e.Code) ? e.Message : e.Code + " - " + e.Message; } catch (Exception) { _shouldRender = true; Error = Strings.CreateError; } }
protected async Task CreateItem() { try { Error = ""; ColumnErrors = new QueryDictionary <string>(); await GridComponent.CreateItem(this); } catch (GridException e) { _shouldRender = true; Error = string.IsNullOrWhiteSpace(e.Code) ? e.Message : e.Code + " - " + e.Message; } catch (Exception e) { Console.WriteLine(e.Message); _shouldRender = true; Error = Strings.CreateError; } }
protected async Task CreateItem() { await GridComponent.CreateItem(); }