示例#1
0
        public IActionResult Put([FromBody] CardViewModel CardViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(CardViewModel));
            }

            _CardAppService.Update(CardViewModel);

            return(Response(CardViewModel));
        }
示例#2
0
        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));
        }