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