first commit

This commit is contained in:
2026-02-26 14:04:18 +07:00
parent 57ac80a666
commit 4b7236493f
92 changed files with 4999 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
namespace MyNewProjectName.Contracts.Common
{
// Generic response model for all API endpoints
public class ServiceResponse<T>
{
// 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<string>? Errors { get; set; }
// Field-specific validation errors for frontend form validation
public Dictionary<string, List<string>>? FieldErrors { get; set; }
}
}