public void SaveSum(double sum, int totalCars) { var profit = new CurrentProfit { CurrentSum = (decimal)sum, TotalCars = totalCars }; context.CurrentProfits.Add(profit); context.SaveChanges(); }
public int CompareTo(Node other) { if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } return(CurrentProfit.CompareTo(other.CurrentProfit)); }