示例#1
0
        public async Task <IActionResult> PostGuildToListAsync([FromQuery] string guildName, int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var huntedList = await _listRepository.AddGuildToListAsync(guildName, id);

            if (huntedList == null)
            {
                return(BadRequest());
            }

            return(Ok());
        }