Fix ambiguous names in the controller
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user