Esempio n. 1
0
 async public void Save_data_btn_event()
 {
     try
     {
         if (data)
         {
             await GameService.UpdateBucketItem <client>(data_id, user_id_cod, new client
             {
                 Name          = name.text,
                 Pohone        = int.Parse(Pohenee.text),
                 shomare_hsab  = shomare_hsab.text,
                 shomare_shaba = shomar_shaba.text
             });
         }
         else
         {
             await GameService.AddBucketItem <client>(data_id, new client
             {
                 Name          = name.text,
                 Pohone        = int.Parse(Pohenee.text),
                 shomare_hsab  = shomare_hsab.text,
                 shomare_shaba = shomar_shaba.text
             });
         }
     }
     catch (System.Exception)
     {
     }
 }