Beispiel #1
0
 private async Task <bool> CanSetItemNameAsync(ItemModel target)
 {
     if (target == null)
     {
         return(false);
     }
     if (target.ItemName == "")
     {
         return(false);
     }
     return(await FirebaseService.IsItemNameAwailableAsync(target));
 }
Beispiel #2
0
        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));
        }