fix: update fallback behavior to return empty responses when backend is unavailable

This commit is contained in:
masoodafar-web
2025-12-25 17:57:39 +03:30
parent cb6102191e
commit 45a291b529
6 changed files with 44 additions and 210 deletions
@@ -35,12 +35,12 @@ public class ClubMembershipService
}
catch
{
// Fallback to mock data if backend is unavailable
// Return empty membership if backend is unavailable
return new ClubMembershipDto
{
UserId = 1,
UserId = 0,
IsActive = false,
Status = "Inactive",
Status = string.Empty,
DaysRemaining = null
};
}