public async Task <ActionResult <bool> > UpdateWord(WordsDto dto)
        {
            var updated = await _repository.UpdateWord(dto);

            if (updated)
            {
                return(Ok(updated));
            }
            return(StatusCode(404));
        }
Beispiel #2
0
 public void UpdateWord(string wordToUpdate, string ip, int wordIndex = -1)
 {
     try
     {
         _wordsRepository.UpdateWord(wordIndex, wordToUpdate);
         _usersRepository.IncreaseAvailabeUserSearches(ip);
     } catch (Exception ex)
     {
         throw;
     }
 }