namespace MyNewProjectName.Contracts.Common { // Generic response model for all API endpoints public class ServiceResponse { // Success status of the request public bool Success { get; set; } = true; // Response message public string Message { get; set; } = string.Empty; // Response data public T? Data { get; set; } // Error details if any public List? Errors { get; set; } // Field-specific validation errors for frontend form validation public Dictionary>? FieldErrors { get; set; } } }