PRN231_-_FA_2024_-_PE_2885.webp
Riza851

PRN231_-_FA_2024_-_PE_2885.webp

  • Media owner Riza851
  • Ngày thêm
2. Create a new author
Zoom
Create a form where users can add a new author by providing the author's name and bio.
The form must also allow users to select multiple books from a list of books to assign to the new
author.
Validation Requirement: Both the Name and Bio fields are required and must not be empty. If either field is left empty, the user must receive a validation error.
Use the POST/api/authors API to create the new author.
URL: /Authors/Create
After the user submits the form
If the author is created successfully, redirect the user back to the author list page (/Authors) to show the newly added author.
If validation fails (e.g., Name or Bio is empty), appropriate error messages are displayed.
If there is an error during author creation, display a failure message indicating the issue,such as "Error creating author."
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRN231
Thêm bởi
Riza851
Ngày thêm
Lượt xem
873
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN231_-_FA_2024_-_PE_2885.webp
File size
160.9 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom