public static ObjectContextFacade PersistObjectAndValidate(this IFrameworkFacade frameworkFacade, string domainType, ArgumentsContextFacade argsContext, RestControlFlags flags) { var context = frameworkFacade.Persist(domainType, argsContext); return(ValidatePersistObjectContext(context, flags)); }