Question: what is difference between single and singleordefault?
Answer: Single() expects one and only one element in the collection. Single() throws an exception when it gets no element or more than one elements in the collection. ... SingleOrDefault() will throw an exception if there is more than one elements in a colection or for the specified condition.