Added models for presentation layer with data annotations
This commit is contained in:
		| @@ -1,5 +1,11 @@ | ||||
| using ApplicationLayer.Services.AuthServices.Common; | ||||
| using System.ComponentModel.DataAnnotations; | ||||
| using ApplicationLayer.Services.AuthServices.Common; | ||||
|  | ||||
| namespace ApplicationLayer.Services.Users.Requests; | ||||
|  | ||||
| public record ChangeUserAuthDataRequest(Guid UserId, AuthData NewAuthData); | ||||
| public class ChangeUserAuthDataRequest(Guid userId, AuthData newAuthData) | ||||
| { | ||||
|     [Required] public Guid UserId { get; set; } = userId; | ||||
|  | ||||
|     [Required] public AuthData NewAuthData { get; set; } = newAuthData; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user