public static TRoot Update <TRoot>(this IAggregateRootRepository <TRoot> repository, string uri, Action <TRoot> change) where TRoot : IAggregateRoot { return(repository.Update(new[] { uri }, roots => change(roots[0]))[0]); }