/// <summary> /// Create a SaveWorkState from the raw entities sent by the client. /// </summary> /// <param name="rawEntities">Objects assumed to have an entityAspect property containing the entityTypeName</param> /// <returns></returns> public SaveWorkState BuildSaveWorkState(List<object> rawEntities) { var entityGroups = BuildEntityGroups(rawEntities); var workState = new SaveWorkState(entityGroups); return workState; }