Fix W3-T4 review: log+sanitize catch messages, add validation attrs to CmsTrackUpdateRequest, document T3 delete dependency
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using DeepDrftModels.Entities;
|
||||
using DeepDrftWeb.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
@@ -51,8 +52,8 @@ public class CmsEditController : ControllerBase
|
||||
}
|
||||
|
||||
public record CmsTrackUpdateRequest(
|
||||
string TrackName,
|
||||
string Artist,
|
||||
string? Album,
|
||||
string? Genre,
|
||||
[Required, MaxLength(200)] string TrackName,
|
||||
[Required, MaxLength(200)] string Artist,
|
||||
[MaxLength(200)] string? Album,
|
||||
[MaxLength(100)] string? Genre,
|
||||
DateOnly? ReleaseDate);
|
||||
|
||||
Reference in New Issue
Block a user