public async Task <IHttpActionResult> UpdateContents(int id, List <IncludedItemDTO> contents) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (await _pageRepo.UpdatePageContents(id, contents)) { return(Ok()); } return(NotFound()); }