private dynamic ExpandSingleItem(Customer customer) { var links = GetLinks(customer.Id); CustomerDto item = Mapper.Map <CustomerDto>(customer); var resourceToReturn = item.ToDynamic() as IDictionary <string, object>; resourceToReturn.Add("links", links); return(resourceToReturn); }