private async Task <bool> CanSetItemNameAsync(ItemModel target) { if (target == null) { return(false); } if (target.ItemName == "") { return(false); } return(await FirebaseService.IsItemNameAwailableAsync(target)); }
private async Task <bool> CanCreateItemAsync() { if (NewItem == null) { return(false); } if (NewItem.State == null) { return(false); } if (NewItem.ItemName == "") { return(false); } return(await FirebaseService.IsItemNameAwailableAsync(NewItem)); }