Exemple #1
0
        public async Task <ActionResult> UpdateAsync(FavoritesShortDto favorites)
        {
            if (ModelState.IsValid)
            {
                await _favoritesService.UpdateAsync(favorites);

                return(Ok(favorites));
            }

            return(BadRequest(ModelState));
        }