Fix ambiguous names in the controller

This commit is contained in:
2025-04-07 16:00:35 -04:00
parent aef3b70d29
commit 80e6fe7edd

View File

@@ -17,7 +17,7 @@ namespace MarketDataServer.Controllers
public class GainLossController : ApiController
{
private ActiveGainLossGenerator gainLossGenerator=new ActiveGainLossGenerator();
public IEnumerable<GainLossSummaryItem> GetGainLoss(String token, DateTime selectedDate)
public IEnumerable<GainLossSummaryItem> 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<GainLossSummaryItem> GetGainLoss(String token, DateTime selectedDate,String account)
public IEnumerable<GainLossSummaryItem> 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<GainLossSummaryItemDetail> GetGainLossWithDetail(String token, DateTime selectedDate)
public IEnumerable<GainLossSummaryItemDetail> 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<GainLossSummaryItemDetail> GetGainLossWithDetail(String token, DateTime selectedDate, String account)
public IEnumerable<GainLossSummaryItemDetail> 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;