public ActionResult <ListDto> CleanList(int listId) { var serviceResult = _listService.CleanList(listId); if (serviceResult.ResponseCode != ResponseCode.Success) { return(BadRequest(serviceResult.Error)); } var list = serviceResult.Result; return(Ok(new ListDto { Name = list.Name, Id = list.Id, Items = list.Items })); }