public decimal GetSalesByMonth(StoreModel s, int m) { List <Order> orders = _sa.GetAllOrders(_sa.GetStore(s.StoreName).StoreId, m); decimal sum = 0M; foreach (var o in orders) { sum += o.TotalCost; } return(sum); }
public decimal GetSalesByMonth(StoreModel s, int m) { List <Order> orders = _sa.GetAllOrders(_sa.GetStore(s.StoreName).StoreId, m); decimal sum = 0M; foreach (var o in orders) { sum += o.TotalCost; } return(sum); }