creating an object in a model from sum C# code example Example: c# sum object values double total = myList.Sum(item => item.Amount);