public IActionResult Put([FromBody] CardViewModel CardViewModel) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(CardViewModel)); } _CardAppService.Update(CardViewModel); return(Response(CardViewModel)); }
public async Task <IActionResult> Update(string id, CompleteCardInformationDto cardIn) { var card = _cardService.Get(id); if (card == null) { return(NotFound()); } var teste = await _cardService.Update(id, cardIn); return(Ok(teste)); }