From 80e6fe7edd5f1d3f2d9f42e76bc0edaa196bfd45 Mon Sep 17 00:00:00 2001 From: Sean Date: Mon, 7 Apr 2025 16:00:35 -0400 Subject: [PATCH] Fix ambiguous names in the controller --- Controllers/GainLossController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Controllers/GainLossController.cs b/Controllers/GainLossController.cs index 08a2362..49b53f2 100644 --- a/Controllers/GainLossController.cs +++ b/Controllers/GainLossController.cs @@ -17,7 +17,7 @@ namespace MarketDataServer.Controllers public class GainLossController : ApiController { private ActiveGainLossGenerator gainLossGenerator=new ActiveGainLossGenerator(); - public IEnumerable GetGainLoss(String token, DateTime selectedDate) + public IEnumerable GetGainLossByDate(String token, DateTime selectedDate) { MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][GainLossController::GetGainLoss](String token, DateTime selectedDate)", DateTime.Now)); if (!Authorizations.GetInstance().IsAuthorized(token)) return null; @@ -50,7 +50,7 @@ namespace MarketDataServer.Controllers // **** return gainLossSummaryItems; } - public IEnumerable GetGainLoss(String token, DateTime selectedDate,String account) + public IEnumerable GetGainLossByDateAndAccount(String token, DateTime selectedDate,String account) { MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][GainLossController::GetGainLoss](String token, DateTime selectedDate,String account)", DateTime.Now)); LocalPriceCache.GetInstance().Refresh(); @@ -85,7 +85,7 @@ namespace MarketDataServer.Controllers return gainLossSummaryItems; } // ********* - public IEnumerable GetGainLossWithDetail(String token, DateTime selectedDate) + public IEnumerable GetGainLossWithDetailByDate(String token, DateTime selectedDate) { MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][GainLossController::GetGainLossWithDetail](String token, DateTime selectedDate)", DateTime.Now)); if (!Authorizations.GetInstance().IsAuthorized(token)) return null; @@ -169,7 +169,7 @@ namespace MarketDataServer.Controllers // **** return gainLossSummaryItemDetailCollection; } - public IEnumerable GetGainLossWithDetail(String token, DateTime selectedDate, String account) + public IEnumerable GetGainLossWithDetailByDateAndAccount(String token, DateTime selectedDate, String account) { MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][GainLossController::GetGainLossWithDetail](String token, DateTime selectedDate,String account)", DateTime.Now)); if (!Authorizations.GetInstance().IsAuthorized(token)) return null;