C# Class CycleSales.CycleSalesModel.PriceService

Exibir arquivo Open project: rowanmiller/Demo-EF7 Class Usage Examples

Public Methods

Method Description
CalculateForeignPrices ( decimal exchangeRate ) : IEnumerable
CalculatePrice ( decimal price, decimal multiplier ) : decimal
PriceService ( CycleSalesContext context ) : System
UpdatePrices ( decimal multiplier ) : IEnumerable

Private Methods

Method Description
RoundPrice ( decimal price ) : decimal

Method Details

CalculateForeignPrices() public method

public CalculateForeignPrices ( decimal exchangeRate ) : IEnumerable
exchangeRate decimal
return IEnumerable

CalculatePrice() public static method

public static CalculatePrice ( decimal price, decimal multiplier ) : decimal
price decimal
multiplier decimal
return decimal

PriceService() public method

public PriceService ( CycleSalesContext context ) : System
context CycleSalesContext
return System

UpdatePrices() public method

public UpdatePrices ( decimal multiplier ) : IEnumerable
multiplier decimal
return IEnumerable