public bool AddOutingsDetails(OutingsDetails content) { int startingCount = _outingsDetails.Count; _outingsDetails.Add(content); bool wasAdded = (_outingsDetails.Count > startingCount) ? true : false; return(wasAdded); }
public bool AddIndCost(OutingsDetails content) { double totalCount = _indOutingsDetails.Count; int totalCountBool; totalCountBool = System.Convert.ToInt32(totalCount); double indCost = content.IndCost; _indOutingsDetails.Add((OutingsDetails)indCost); //double totalIndCost = (_indOutingsDetails = totalCountBool) ? true : false; //bool totalIndCostBool; //totalIndCostBool = System.Convert.ToBoolean(totalIndCost); bool indCostBool; indCostBool = System.Convert.ToBoolean(indCost); return(indCostBool); }