예제 #1
0
        public IActionResult EditListName([FromBody] EditListNameDto editListNameDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            var result = _listService.EditListName(editListNameDto);

            if (!result)
            {
                return(BadRequest());
            }
            return(NoContent());
        }