Example #1
0
 private void Update(PokerValue input)
 {
     foreach (var elem in List)
     {
         if (elem.name != input.name)
         {
             continue;
         }
         elem.points = input.points;
         break;
     }
 }
Example #2
0
 public ActionResult SetPokerValue([FromBody] PokerValue someVar)
 {
     if (someVar != null)
     {
         Update(someVar);
         return(Json("Success"));
     }
     else
     {
         return(Json("An Error Has occoured"));
     }
 }