public async Task <bool> UpdateCardItemAsync(int id, CardViewModel cardToUpdate) { var card = _mapper.Map <CardViewModel, Card>(cardToUpdate); card.Id = id; _cardRepository.Update(card); await _cardRepository.CommitAsync(); return(true); }