void Start() { SqliteHelper helper = new SqliteHelper(); groupDb = new GroupDb(); ReloadGroups(); groupEditor.UpdateDropdown(); iconDb = new IconDb(); ReloadIcons(); iconEditor.UpdateDropdown(); cardDb = new CardDb(); ReloadCards(); cardEditor.UpdateDropdowns(); }
public async Task CreateGroup(CreateGroupRequest request) { if (string.IsNullOrEmpty(request.Name)) { throw new ArgumentNullException(nameof(request.Name)); } var userId = User.Claims.GetUserId(); var groupDb = new GroupDb { UserId = userId, Name = request.Name }; await _dbService.Insert(groupDb); }
public async Task EditGroup() { HiddenEditButton = false; HiddenSaveButton = true; EditGroupBool = true; Group g = new Group(); g.Id = Group.Id; g.Title = Group.Title; g.Description = Group.Description; await GroupDb.Update(g); StateHasChanged(); }