public IActionResult OnPostCardUpdate([FromBody] CardUpdate cardUpdate) { _cardStore.UpdateOne(cardUpdate.Id, c => { c.Name = cardUpdate.Name; c.Type = cardUpdate.Type; }); return(new JsonResult(true)); }
public IActionResult UpdateDetails(Guid gameId, Guid cardId, string name) { _cardStore.UpdateOne(cardId, c => c.Name = name); return(RedirectToAction("Cards", "Games", new { gameId })); }